joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017380
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14008ec00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400173a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400173a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400173a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400173fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400173f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400173a0
add rax, 0x28
cmp rax, r9
jne 0x1400173e0
xor eax, eax
ret

Function at 0x140017400
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14008ec00]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001741f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140017428
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001741f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400174c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14008ec00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400174df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400174e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140017790
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400949a0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400949a8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400177e0
lea rdx, [0x1400176a0]
mov ecx, eax
mov dword [0x140094998], eax
call fcn.14001d130
test eax, eax
jne 0x1400177e8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400177d7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400177f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14008eb70]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140017828
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140017890
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x1400178a0
mov esi, dword [0x140094998]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140017910
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140017958
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140017817
mov rcx, rbx
call fcn.1400176f0
mov qword [rsi + r12*8 + 8], rax
jmp 0x140017817
call fcn.1400176f0
mov qword [rbx + 0x10], rax
jmp 0x140017817
mov r10d, dword [rsi]
test r10d, r10d
je 0x1400179ba
mov r9d, dword [0x14001f650]
test r9d, r9d
je 0x1400179e8
lock add dword [0x1400949a0], 1
jne 0x140017a1c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x1400179c7
mov eax, dword [rsi]
test eax, eax
je 0x140017831
lock sub dword [0x1400949a0], 1
js 0x140017831
mov rcx, qword [0x1400949a8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140017831
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x140017a43
mov qword [rax], rdi
mov ecx, dword [0x140094998]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14001786b
call r13
jmp 0x14001786b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x140017a43
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140017933
call fcn.140017790
mov dword [0x14001f650], 1
mov edx, dword [rsi]
test edx, edx
jne 0x1400178bc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140017831
mov rax, qword [0x140094990]
lea r12, [rax + 1]
mov qword [0x140094990], r12
mov qword [rbx + 0x10], r12
jmp 0x1400178d7
lock add dword [0x14001f654], 1
je 0x1400179a1
mov r8d, dword [0x14001f650]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x14001f650]
test r8d, r8d
jne 0x1400179b0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140017a10
jmp 0x1400179b0
mov rcx, qword [0x1400949a8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400178ca
lock sub dword [0x1400949a0], 1
jmp 0x1400178ca
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140017a60
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x140017a6a
mov qword [rcx + 8], r8
test r9, r9
je 0x140017a74
cmp qword [rcx], rdx
je 0x140017a78
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x1400d4210
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [rsp + 0x20]
call fcn.1400d5370
lea rcx, [rsp + 0x20]
mov r9d, 6
sub rbx, rcx
lea rax, [rsp + 0x20]
nop dword [rax]
movzx ecx, byte [rbx + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x1400d4250
mov ecx, dword [rsp + 0x20]
lea r9, [rsp + 0x28]
movzx edx, byte [rsp + 0x21]
lea r10, [0x1402de170]
movzx eax, cl
and cl, 3
shr al, 2
mov byte [rsp + 0x28], al
movzx eax, dl
shr al, 4
and dl, 0xf
shl cl, 4
or cl, al
shl dl, 2
mov byte [rsp + 0x29], cl
movzx ecx, byte [rsp + 0x22]
movzx eax, cl
and cl, 0x3f
shr al, 6
or dl, al
mov byte [rsp + 0x2b], cl
movzx ecx, byte [rsp + 0x23]
movzx eax, cl
mov byte [rsp + 0x2a], dl
movzx edx, byte [rsp + 0x24]
and cl, 3
shr al, 2
mov byte [rsp + 0x2c], al
movzx eax, dl
shr al, 4
and dl, 0xf
shl cl, 4
or cl, al
shl dl, 2
mov byte [rsp + 0x2d], cl
movzx ecx, byte [rsp + 0x25]
movzx eax, cl
and cl, 0x3f
shr al, 6
or dl, al
mov byte [rsp + 0x2f], cl
mov byte [rsp + 0x2e], dl
xor r8d, r8d
nop word [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
mov edx, ecx
mov eax, ecx
shr rax, 1
and edx, 1
and eax, 0xf
shl edx, 4
or rdx, rax
and ecx, 0x20
movzx eax, r8b
or rdx, rcx
shl rax, 6
inc r8d
add rdx, rax
movzx eax, byte [rdx + r10]
and al, 0xf
mov byte [r9 - 1], al
cmp r8d, 8
jl 0x1400d4300
lea rdx, [rsp + 0x20]
mov r8d, 4
lea rcx, [rsp + 0x29]
movzx eax, byte [rcx - 1]
lea rdx, [rdx + 1]
shl al, 4
or al, byte [rcx]
lea rcx, [rcx + 2]
mov byte [rdx - 1], al
sub r8, 1
jne 0x1400d4350
lea rcx, [rsp + 0x20]
call fcn.1400d8450
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401c7850
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400df440
Capabilities:
Get local ipv4 addresses

Disassembly:
test ecx, ecx
js 0x1400df645
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15d, r8d
mov r12, rdx
mov r14d, ecx
test rdx, rdx
je 0x1400df62e
mov qword [rsp + 0x90], rbx
xor ebx, ebx
mov qword [rsp + 0x60], rdi
mov edi, ebx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x68], rsi
nop dword [rax]
lea rax, [rsp + 0x34]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x1400df4fa
test rbx, rbx
je 0x1400df4c8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400df4f4
inc edi
cmp edi, 5
jb 0x1400df490
jmp 0x1400df608
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400df603
mov rsi, rbx
test rbx, rbx
je 0x1400df61c
mov qword [rsp + 0xa0], rbp
cmp dword [rsi + 0x64], r15d
jne 0x1400df5e9
cmp dword [rsi + 0x58], 0
jbe 0x1400df5e9
mov rcx, qword [rsi + 0x40]
lea rdx, str.Virtual
call fcn.1401ffd48
test rax, rax
jne 0x1400df5e9
mov rcx, qword [rsi + 0x40]
lea rdx, str.Bluetooth
call fcn.1401ffd48
test rax, rax
jne 0x1400df5e9
mov word [rsp + 0x30], ax
xorps xmm0, xmm0
mov byte [rsp + 0x32], al
mov word [rsp + 0x48], ax
movups xmmword [rsp + 0x38], xmm0
mov eax, dword [rsi + 0x58]
cmp r14d, eax
cmovb eax, r14d
test eax, eax
je 0x1400df5c3
lea rdi, [rsi + 0x50]
mov ebp, eax
nop word [rax + rax]
movzx r8d, byte [rdi]
lea rdx, str._02X
lea rcx, [rsp + 0x30]
call fcn.1400dc800
lea r8, [rsp + 0x30]
mov edx, SafeArrayGetLBound
lea rcx, [rsp + 0x38]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
lea rdi, [rdi + 1]
sub rbp, 1
jne 0x1400df590
lea rax, [rsp + 0x38]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rax + rdx], 0
jne 0x1400df5d0
inc rdx
lea r8, [rsp + 0x38]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
mov rax, qword [rsi + 8]
mov rsi, rax
test rax, rax
jne 0x1400df516
mov rbp, qword [rsp + 0xa0]
jmp 0x1400df608
test rbx, rbx
je 0x1400df61c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401c7850
add rsp, 0x70
pop r15
pop r14
pop r12
ret
Function at 0x1400e4de0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xf0
xor eax, eax
mov dword [rsp + 0x80], 0x68
mov qword [rsp + 0x70], rax
xorps xmm1, xmm1
mov qword [rsp + 0xc4], rax
mov r10, r9
mov dword [rsp + 0xcc], eax
mov r11, r8
mov rax, qword [0x14035fe70]
mov rbx, rdx
mov qword [rsp + 0xe0], rax
mov rdi, rcx
mov qword [rsp + 0xd8], rax
xorps xmm0, xmm0
mov rax, qword [0x14035fe58]
xor r9d, r9d
mov qword [rsp + 0xd0], rax
mov r8, r10
movups xmmword [rsp + 0xb4], xmm1
mov rdx, r11
mov rcx, rbx
movups xmmword [rsp + 0x84], xmm1
movups xmmword [rsp + 0x94], xmm1
movups xmmword [rsp + 0xa4], xmm1
psrldq xmm1, 8
movd eax, xmm1
movups xmmword [rsp + 0x60], xmm0
bts eax, 8
mov dword [rsp + 0xbc], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
test eax, eax
je 0x1400e4ef8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rdi
ret
lea rdx, str.CreateProcess
mov rcx, rdi
call fcn.1400e5860
int3
Function at 0x1400e5860
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov edi, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, edi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rax + 0x28]
add ecx, ebx
movsxd rdx, ecx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov rcx, qword [rsp + 0x60]
lea r8, str._s_failed_with_error__d:__s
mov qword [rsp + 0x28], rcx
mov r9, rsi
shr rax, 1
mov rcx, rbx
mov rdx, rax
mov dword [rsp + 0x20], edi
call fcn.1400ebfe0
xor r9d, r9d
lea r8, [0x140276558]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400fa0f0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor r14d, r14d
movzx edi, dl
mov ebx, r14d
mov rsi, rcx
movzx edx, dil
mov rcx, rsi
call fcn.1400f95c0
cmp eax, 1
jne 0x1400fa111
lea ecx, [rax + 0x2f]
mov qword [rbp - 0x20], r14
add ebx, 0xea60
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], SafeArrayGetLBound
call fcn.1400b9950
mov qword [rbp - 8], 0x2f
cmp ebx, 0x2bf20
je 0x1400fa1f3
movups xmm0, xmmword [str.setWmiEventReceiver__1_start_sleep]
mov qword [rbp - 0x10], 0x24
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140277238]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x140277248]
mov dword [rax + 0x20], ecx
lea rcx, [rbp - 0x20]
mov byte [rax + 0x24], r14b
mov qword [rbp - 0x20], rax
call fcn.1401630b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x30
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], SafeArrayGetLBound
call fcn.1400b9950
movups xmm0, xmmword [str.setWmiEventReceiver__1_end_sleep]
mov qword [rbp - 0x10], 0x22
mov qword [rbp - 8], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140277260]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x140277270]
mov word [rax + 0x20], cx
lea rcx, [rbp - 0x20]
mov byte [rax + 0x22], r14b
mov qword [rbp - 0x20], rax
call fcn.1401630b0
jmp 0x1400fa111
movups xmm0, xmmword [str.setWmiEventReceiver_trycount__3_break]
mov qword [rbp - 0x10], 0x27
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402771c0]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1402771d0]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x1402771d4]
mov word [rax + 0x24], cx
movzx ecx, byte [0x1402771d6]
mov byte [rax + 0x26], cl
lea rcx, [rbp - 0x20]
mov byte [rax + 0x27], r14b
mov qword [rbp - 0x20], rax
call fcn.1401630b0
mov edx, 2
lea rcx, str.setWmiEventReceiver_trycount__3
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
jmp fcn.140163bf0
Function at 0x1400fb740
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x118
mov r11, r9
mov r10, rdx
mov rdx, qword [rsp + 0x140]
mov ecx, dword [rsp + 0x148]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], rax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], 0x68
mov eax, 5
mov word [rsp + 0xc0], ax
lea r9, str.Winsta0Default
lea rax, str.Winsta0Winlogon
test ecx, ecx
cmovne rax, r9
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x30], 0x8000400
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rdx
mov rdx, r11
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400fb869
mov edx, 0x1388
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x1400fb852
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400fb863
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
jmp 0x1400fb86e
mov eax, 1
add rsp, 0x118
ret

Function at 0x1400fec70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400fed53
cmp byte [rcx + 0x71], 0
je 0x1400fed53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [case.0x1400bb8d5.0]
cmp eax, 0xffffffff
je 0x1400fed4f
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x1400bb8d5.0]
test eax, eax
je 0x1400fed12
sub eax, 1
je 0x1400fed16
cmp eax, 2
jne 0x1400fed4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401c7850
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400fed46
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rdi, rax
jne 0x1400fed4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400fecfa
xor al, al
jmp 0x1400fecfa
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401c7850
add rsp, 0x60
pop rbx
ret
Function at 0x1400ff8c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400ff8f0
xor eax, eax
jmp 0x1400ffa43
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400ff92a
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400ff92a
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 0x1400ffa43
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x1400ffa36
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400ff96d
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 0x1400ff97c
movsx ecx, dil
jmp 0x1400ff9da
lea r8, [rsp + 0x58]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x68]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [case.0x1400bb8d5.0]
test eax, eax
je 0x1400ff9f4
sub eax, 1
je 0x1400ff9f4
cmp eax, 2
jne 0x1400ffa36
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400ffa3b
mov rsi, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x1400ffa24
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rsi, rax
jne 0x1400ffa36
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x60], rax
mov eax, edi
jne 0x1400ffa3b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401c7850
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x1401004e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140100511
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
je 0x140100596
lfence
mov rbx, rbp
mov rcx, rdi
call fcn.1400ff0d0
test rax, rax
jle 0x140100566
mov rdx, qword [rdi + 0x38]
cmp rbx, rax
mov rsi, rbx
mov rcx, r14
cmovge rsi, rax
mov r8, rsi
mov rdx, qword [rdx]
call fcn.1401ff6b0
mov rax, qword [rdi + 0x50]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x38]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140100586
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [case.0x1400bb8d5.0]
cmp eax, 0xffffffff
je 0x14010058e
mov byte [r14], al
dec rbx
mov esi, 1
add r14, rsi
test rbx, rbx
jg 0x140100528
sub rbp, rbx
jmp 0x140100688
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1401005ad
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1401005af
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1401005e1
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1401ff6b0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140100682
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14010061c
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rbx, rsi
cmp rsi, 0xfff
jbe 0x140100660
nop dword [rax + rax]
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
sub rsi, rax
add r14, rax
mov rbx, rsi
cmp rax, 0xfff
jne 0x140100682
cmp rsi, rax
ja 0x140100630
test rbx, rbx
je 0x140100682
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rsi, rbx
sub rsi, rax
sub rbp, rsi
lfence
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140100770
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140100811
test r8, r8
jle 0x140100809
mov rcx, rdi
call fcn.1400ff3c0
test rax, rax
jle 0x1401007e0
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.1401ff6b0
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140100801
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
mov rax, qword [rax + 0x18]
call qword [case.0x1400bb8d5.0]
cmp eax, 0xffffffff
je 0x140100809
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x1401007a2
sub r14, rbx
mov rax, r14
jmp 0x14010088d
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x140100825
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140100827
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x140100887
test ecx, ecx
jle 0x140100860
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.1401ff6b0
mov rax, qword [rdi + 0x58]
sub r14, rsi
add rbp, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x140100887
cmp qword [rdi + 0x80], 0
je 0x140100887
lfence
mov r9, qword [rdi + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
sub r14, rax
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret