joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d310
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004bd850]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x40d388
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40d388
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x40d388
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40d388
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x40d37c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x40d390
add rdx, 0x28
cmp rdx, r10
jne 0x40d368
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x40d3a0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x40d3ae
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40d385
test r8d, r8d
jg 0x40d398
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x420620
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp dbg.__shmem_grab

Function at 0x420640
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp dbg.__shmem_grab

Function at 0x421e50
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x421e7c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x422ae0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x004b7e30], 0
jne 0x422bea
mov byte [0x004b7e30], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x422bc0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x422bb1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x004b9f31]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x422bac
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x422b7b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x422c7f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x422be5
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x422be5

Function at 0x47c250
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47c277
call rbp
cmp dword [rax], 4
jne 0x47c294
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47c270
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001a5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aa6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aa6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aa6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aa6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aa6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001aa8
xor al, al
add rsp, 0x28
ret

Function at 0x1406b7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406b71df
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 0x1406b7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b706f
add dl, dl
jne 0x1406b7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b70f6
xor eax, eax
add dl, dl
jne 0x1406b70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b71ad
add dl, dl
jne 0x1406b70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406b70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406b707e
mov eax, 1
add dl, dl
jne 0x1406b7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b70fb
sub eax, ebx
mov ebx, 1
jne 0x1406b714c
mov ecx, 1
add dl, dl
jne 0x1406b712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406b7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b715d
cmp eax, 0x7d00
jae 0x1406b719b
cmp eax, 0x500
jb 0x1406b7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b707e
cmp eax, 0x7f
ja 0x1406b719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406b71d2
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 0x1406b707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800018c0
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor eax, eax
movzx ecx, byte [rcx]
test cl, cl
je 0x180001960
movzx edx, cl
lea r8, [r8 + 1]
or edx, 0x20
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
imul edx, ecx, 0x82f63b78
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
imul ecx, eax, 0x82f63b78
xor ecx, edx
mov eax, ecx
shr ecx, 1
and eax, 1
imul edx, eax, 0x82f63b78
xor edx, ecx
mov eax, edx
shr edx, 1
and eax, 1
imul ecx, eax, 0x82f63b78
xor ecx, edx
mov eax, ecx
shr ecx, 1
and eax, 1
imul edx, eax, 0x82f63b78
xor edx, ecx
mov eax, edx
shr edx, 1
and eax, 1
imul ecx, eax, 0x82f63b78
xor ecx, edx
mov eax, ecx
shr ecx, 1
and eax, 1
imul edx, eax, 0x82f63b78
xor edx, ecx
movzx ecx, byte [r8]
mov eax, edx
shr edx, 1
and eax, 1
imul eax, eax, 0x82f63b78
xor eax, edx
test cl, cl
jne 0x1800018d0
ret

Function at 0x180001970
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push rbx
push r15
sub rsp, 0x28
mov rdx, qword gs:[0x30]
xor eax, eax
mov r15d, ecx
mov r8, qword [rdx + 0x60]
mov rdx, qword [r8 + 0x18]
mov rbx, qword [rdx + 0x10]
mov r9, qword [rbx + 0x30]
test r9, r9
je 0x180001a65
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r14
test rax, rax
jne 0x180001a51
movsxd rax, dword [r9 + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
jne 0x1800019d0
xor eax, eax
jmp 0x180001a41
mov r10d, dword [r9 + rcx + 0x18]
lea rax, [r9 + rcx]
test r10d, r10d
jne 0x1800019e2
xor eax, eax
jmp 0x180001a41
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x20]
add rbp, r9
mov r14d, dword [rax + 0x24]
add rdi, r9
mov ecx, dword [rax + 0xc]
add r14, r9
add rcx, r9
call fcn.1800018c0
mov esi, eax
nop dword [rax]
nop word [rax + rax]
lea eax, [r10 - 1]
mov ecx, dword [rdi + rax*4]
mov r10d, eax
add rcx, r9
mov r11d, eax
call fcn.1800018c0
add eax, esi
cmp eax, r15d
je 0x180001a35
test r10d, r10d
jne 0x180001a10
xor eax, eax
jmp 0x180001a41
movzx eax, word [r14 + r11*2]
mov eax, dword [rbp + rax*4]
add rax, r9
mov rbx, qword [rbx]
mov r9, qword [rbx + 0x30]
test r9, r9
jne 0x1800019b3
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop rbx
ret
Function at 0x180001aa0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x70
xor r9d, r9d
mov dword [rsp + 0x30], ecx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r8, [0x180001a70]
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x38]
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180001b59
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x180001b45
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180001b10
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x70
pop rbx
ret
Function at 0x180008f2c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180008dd3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180008dd3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180008dd3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180008dd3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180008dd3
cmp dword [rcx + 0x84], 0xe
jbe 0x180008dd3
cmp dword [rcx + 0xf8], 0
je 0x180008dd3
mov ecx, ebx
call fcn.180008e90
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180008c60
nop
cmp dword [rbp + 0x20], 0
je 0x180008e21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180008e2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x180008d64
Function at 0x18000d4e0
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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000d510
xor eax, eax
jmp 0x18000d5d3
mov rbp, rbx
cmp word [rax], si
je 0x18000d535
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000d51c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000d518
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000d430
movsxd r14, eax
test eax, eax
jne 0x18000d573
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000d509
mov rcx, r14
call fcn.18000bc14
mov rdi, rax
test rax, rax
jne 0x18000d58c
xor ecx, ecx
call fcn.18000abdc
jmp 0x18000d568
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000d430
test eax, eax
jne 0x18000d5bd
mov rcx, rdi
call fcn.18000abdc
jmp 0x18000d5c7
xor ecx, ecx
call fcn.18000abdc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180010e44
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18000ba88
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180010ece
cmp byte [rbp - 0x21], r15b
je 0x180010ec9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180010f04
call fcn.18000dce8
test eax, eax
jne 0x180010ef0
cmp byte [rbp - 0x21], r15b
je 0x180010ee8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180010f04
cmp byte [rbp - 0x21], r15b
je 0x180010f01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.18000b90c
test eax, eax
jne 0x180010fa4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18000ba88
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180010f43
cmp byte [rbp - 0x21], r15b
je 0x180010f78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180010f78
call fcn.18000dce8
test eax, eax
jne 0x180010f64
cmp byte [rbp - 0x21], r15b
je 0x180010f5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180010f78
cmp byte [rbp - 0x21], r15b
je 0x180010f75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.18000b90c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180010fa4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x180010fa7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180010fb5
mov rcx, rdi
call fcn.18000abdc
cmp byte [rbp + 0x3f], r15b
je 0x180010fc4
mov rcx, qword [rbp + 0x27]
call fcn.18000abdc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180014200
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180014228
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180014228
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10000ae90
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, r8
mov r13, rcx
mov r12, rdx
lea r8, [rax + 0x18]
lea rcx, [0x10001c670]
xor ebx, ebx
mov edx, 0x8000
mov edi, ebx
call qword [sym.imp.msvcrt.dll__open]
mov esi, eax
cmp eax, 0xffffffff
jne 0x10000aef1
lea r9, [0x10001c670]
lea r8, [0x100001ac0]
lea rdx, [0x100002b90]
mov rcx, r12
call fcn.10000afac
jmp 0x10000af63
mov ecx, eax
jmp 0x10000af48
mov r8d, 0x1000
mov rdx, rbp
mov ecx, esi
call qword [sym.imp.msvcrt.dll__read]
mov r11d, eax
cmp eax, 0xffffffff
je 0x10000af87
cmp eax, ebx
je 0x10000af46
or edx, 0xffffffff
mov r8, rbp
sub edx, edi
movzx ecx, byte [r8]
movzx eax, dl
lea r9, [0x10001bcb0]
xor rcx, rax
mov eax, edx
dec r11d
mov edx, dword [r9 + rcx*4]
shr eax, 8
inc r8
xor edx, eax
cmp r11d, ebx
jne 0x10000af1a
or edi, 0xffffffff
sub edi, edx
mov ecx, esi
call qword [sym.imp.msvcrt.dll__eof]
cmp eax, ebx
je 0x10000aef5
mov ebx, 1
mov dword [r13], edi
mov ecx, esi
call qword [sym.imp.msvcrt.dll__close]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
lea r9, [0x10001c670]
lea r8, [0x100001ac0]
lea rdx, [0x100003370]
mov rcx, r12
call fcn.10000afac
jmp 0x10000af5b
Function at 0x10000b848
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r13
sub rsp, 0x50
xor r13d, r13d
mov rsi, r8
mov rbp, rdx
mov qword [rax - 0x38], r13
mov dword [rax - 0x40], r13d
lea edi, [r13 + 3]
lea rcx, [0x10001c870]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x48], edi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x10000b8d0
lea ecx, [rdi + 0x61]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], r13
lea rcx, [0x10001c870]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x10000b962
movzx edx, word [rbp + 2]
movzx ecx, word [rbp]
lea r8, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x88]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
or edi, eax
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
or edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [rbp + 4], r13w
jne 0x10000b929
mov edx, 0x80
jmp 0x10000b930
movzx edx, word [rbp + 4]
and edx, 0x27
lea rcx, [0x10001c870]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, edi
jne 0x10000b962
lea r9, [0x10001c870]
lea r8, [0x100001ac0]
lea rdx, [0x1000035f8]
mov rcx, rsi
call fcn.10000afac
xor eax, eax
jmp 0x10000b967
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r13
pop rdi
pop rsi
ret
Function at 0x10000b980
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x60
lea r14, [0x10001c670]
mov r13d, 0x8000
mov edi, r8d
mov rcx, r14
mov edx, r13d
xor ebx, ebx
xor r12d, r12d
call qword [sym.imp.msvcrt.dll__open]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x10000b9e9
mov rcx, qword [rsp + 0xb0]
lea r8, [0x100001ac0]
lea rdx, [0x100003628]
mov r9, r14
call fcn.10000afac
jmp 0x10000bb8c
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
mov rbp, qword [rsp + 0xb0]
test eax, eax
je 0x10000ba1c
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r8, rbp
mov rdx, r14
call fcn.10000b7b0
jmp 0x10000ba37
lea r8, [0x100001ac0]
lea rdx, [0x1000035c8]
mov r9, r14
mov rcx, rbp
call fcn.10000afac
xor eax, eax
test eax, eax
je 0x10000bb75
lea rax, [fcn.1000094c8]
test rax, rax
je 0x10000ba68
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x30]
mov r8, rbp
call fcn.1000094c8
test eax, eax
je 0x10000bb75
test edi, edi
jne 0x10000ba74
lea ebx, [rdi + 1]
jmp 0x10000bb75
mov ecx, r13d
call qword [sym.imp.msvcrt.dll_malloc]
lea r13, [0x10001c870]
mov r12, rax
test rax, rax
jne 0x10000baaf
lea r8, [0x100001a7c]
lea rdx, [0x100003640]
mov r9, r14
mov rcx, rbp
mov qword [rsp + 0x20], r13
call fcn.10000afac
jmp 0x10000bb75
mov edx, 0x8301
mov r8d, 0x180
mov rcx, r13
call qword [sym.imp.msvcrt.dll__open]
mov edi, eax
cmp eax, 0xffffffff
jne 0x10000bae8
mov r9, r13
lea rdx, [0x100003628]
lea r8, [0x100001ac0]
mov rcx, rbp
call fcn.10000afac
jmp 0x10000bb68
mov ecx, r15d
call qword [sym.imp.msvcrt.dll__eof]
test eax, eax
jne 0x10000bb46
mov r8d, 0x8000
mov rdx, r12
mov ecx, r15d
call qword [sym.imp.msvcrt.dll__read]
mov r14d, eax
cmp eax, 0xffffffff
je 0x10000bb36
test eax, eax
je 0x10000bae8
mov r8d, eax
mov rdx, r12
mov ecx, edi
call qword [sym.imp.msvcrt.dll__write]
cmp eax, r14d
je 0x10000bae8
lea r9, [0x10001c670]
lea rdx, [0x100003688]
jmp 0x10000bad4
lea r9, [0x10001c670]
lea rdx, [0x100003670]
jmp 0x10000bad4
mov ecx, edi
call qword [sym.imp.msvcrt.dll__close]
lea rdx, [rsp + 0x30]
mov r8, rbp
mov rcx, r13
or edi, 0xffffffff
call fcn.10000b848
test eax, eax
je 0x10000bb75
lea ebx, [rdi + 2]
cmp edi, 0xffffffff
je 0x10000bb75
mov ecx, edi
call qword [sym.imp.msvcrt.dll__close]
mov ecx, r15d
call qword [sym.imp.msvcrt.dll__close]
test r12, r12
je 0x10000bb8c
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret