joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400422e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6010], 0
lea rbx, [rcx + 0x6018]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140042387
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14004233a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140044b70
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14002cc30
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6020]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400a42ed]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14004238f
mov rcx, rbx
call fcn.14002cc30
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400426b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x1400a4788]
xor ebp, ebp
cmp byte [rbx + 0x5f68], bpl
jne 0x14004278f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140042788
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.14002c4f0
mov rsi, rax
test rax, rax
je 0x140042788
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140042714
mov rcx, rax
call fcn.1400428e0
mov r8, qword [0x1400a4788]
test r8, r8
je 0x14004277f
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140042774
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f68], 1
movss xmm0, dword [rbx + 0x5f6c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14004281e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f6c], xmm0
jb 0x14004281e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140042811
mov rax, qword [0x1400a4788]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f6c], ebp
call fcn.140042b40
lea rdx, [0x140096164]
mov rcx, rdi
mov rsi, rax
call fcn.14002c340
mov rdi, rax
test rax, rax
je 0x140042818
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140042818
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f6c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140042840
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400a4788]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400428a3
mov qword [rsp], rbx
lea rbx, [0x1400908d0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140042883
cmp byte [r8], r9b
jne 0x140042883
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140042870
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x1400428cf
cmp dword [r8 + 8], eax
je 0x1400428d6
add r8, 0x48
cmp r8, rcx
jne 0x1400428c0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140058da0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a3040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, rcx
mov rsi, qword [0x1400a4788]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140058fc0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140058fc0
mov ecx, 0x50
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov r8, qword [0x1400a4788]
xor ebx, ebx
test r8, r8
je 0x140058e71
mov r9d, dword [r8 + 0x3f58]
movsx rdx, word [r8 + 0x60f0]
lea rax, [r8 + 0x60f4]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140058e66
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60f4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60e8]
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdi
test rdi, rdi
je 0x140058ea2
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x140058ea5
mov rdi, rbx
mov qword [rsi + 0x90], rdi
lea rax, [0x1400969e8]
mov qword [rsi + 0x80], rax
or dword [rsi + 0xc], 6
mov qword [rdi], rbp
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x140058ee8
mov rsi, qword [r8 + 0x90]
jmp 0x140058eeb
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
movzx ecx, ax
mov r9d, 4
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140058f16
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1400a4788]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
mov byte [rdi + 0x31], 1
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x28], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x48], rax
nop dword [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140058f90
inc rbx
cmp rbx, 5
jl 0x140058f70
mov al, 1
jmp 0x140058fc2
mov qword [rdi + 0x38], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov al, 1
jmp 0x140058fc2
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006c540
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14006a4e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1400a3040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rdx
mov qword [rbp - 1], rdx
xor r8d, r8d
mov dword [rbp - 0x49], r8d
mov ecx, 0x161ef425
mov dword [rbp + 7], ecx
mov dword [rbp + 0xb], 0x22a5c564
mov dword [rbp + 0xf], 0xd8d30f88
mov dword [rbp + 0x13], 0xb5a0b98
movdqa xmm0, xmmword [0x140097af0]
movdqa xmmword [rbp + 0x17], xmm0
movdqa xmm1, xmmword [0x1400974a0]
movdqa xmmword [rbp + 0x27], xmm1
movdqa xmm0, xmmword [0x140096fa0]
movdqa xmmword [rbp + 0x37], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
mov dword [rbp - 0x41], ecx
lea r9d, [r8 + 0x3b]
nop dword [rax]
movzx eax, cl
xor al, byte [rbp + r8 + 0xb]
mov byte [rbp + r8 - 0x3d], al
imul ecx, ecx, 0xbc8f
mov eax, 3
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1e
imul eax, eax, 0x7fffffff
sub ecx, eax
lea r8, [r8 + 1]
sub r9, 1
jne 0x14006a570
movups xmm0, xmmword [rbp - 0x41]
movaps xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rbp - 0x31]
movaps xmmword [rbp + 0x17], xmm1
movups xmm0, xmmword [rbp - 0x21]
movaps xmmword [rbp + 0x27], xmm0
movups xmm1, xmmword [rbp - 0x11]
movaps xmmword [rbp + 0x37], xmm1
lea rdx, [rbp + 0xb]
mov rcx, rbx
call fcn.140006a10
nop
mov dword [rbp - 0x49], 1
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14006c540
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret

Function at 0x14006a600
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400a3040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 2
mov qword [rsp + 0x28], 0
mov ecx, 0x7f000001
mov word [rsp + 0x20], bx
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, 0x1b58
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
xor r8d, r8d
lea edx, [rbx - 1]
mov ecx, ebx
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006a680
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14006a69a
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006c540
add rsp, 0x40
pop rbx
ret
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006c540
add rsp, 0x40
pop rbx
ret
Function at 0x14006c240
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1400a3040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
movabs rdi, 0xcbf29ce484222325
cmp qword [rcx + 0x18], 0xf
jbe 0x14006c27d
mov r8, qword [rcx]
mov rdx, r8
mov rcx, r8
jmp 0x14006c283
mov rdx, rbx
mov r8, rbx
add rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x14006c2b3
movabs r8, 0x100000001b3
nop word [rax + rax]
movsx rax, byte [rcx]
xor rdi, rax
imul rdi, r8
inc rcx
cmp rcx, rdx
jne 0x14006c2a0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14006c2e9
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14006c2e4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006c317
mov rcx, r8
call fcn.14006c560
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006c540
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x14006c320
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a3040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea rsi, [0x1400a46b8]
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x58], 1
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockShared
nop
movzx edx, byte [rdi + 0x34]
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rdi + 0x35]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rdi + 0x36]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rdi + 0x37]
xor rdx, rax
imul rdx, rcx
mov r8, qword [0x1400a7470]
and r8, rdx
shl r8, 4
add r8, qword [0x1400a7458]
mov rcx, qword [r8 + 8]
mov rax, qword [0x1400a7448]
cmp rcx, rax
je 0x14006c3f0
mov r8, qword [r8]
mov edx, dword [rdi + 0x34]
cmp edx, dword [rcx + 0x10]
je 0x14006c3f2
nop dword [rax + rax]
cmp rcx, r8
je 0x14006c3f0
mov rcx, qword [rcx + 8]
cmp edx, dword [rcx + 0x10]
jne 0x14006c3e0
jmp 0x14006c3f2
xor ecx, ecx
test rcx, rcx
je 0x14006c412
cmp rcx, rax
je 0x14006c412
movups xmm0, xmmword [rcx + 0x14]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rcx + 0x24]
movups xmmword [rbx + 0x10], xmm1
movsd xmm0, qword [rcx + 0x34]
jmp 0x14006c429
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x40], rax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbx + 0x20], xmm0
mov rcx, rsi
call sub.KERNEL32.dll_ReleaseSRWLockShared
nop
mov rcx, rdi
call fcn.140009ed0
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14006c540
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14006d0e0
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
je 0x140001249
cmp dword [rbx + 0x10], 0
je 0x14000123d
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
and dword [rbx + 0x10], 0
mov rcx, qword [rbx]
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x140001253
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000126b
cmp dword [rbx + 8], 0
je 0x140001261
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x140001267
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
or qword [rbx], 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x14000130c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
mov rcx, qword [rcx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000133f
cmp dword [rbx + 8], edi
je 0x140001335
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14000133b
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
or qword [rbx], 0xffffffffffffffff
cmp dword [rbx + 0x10], edi
je 0x14000135b
lea rcx, [rbx + 0x18]
cmp qword [rcx + 0x18], 8
jb 0x140001352
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [rbx + 0x10], edi
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x140001376
mov rcx, qword [rbx + 0x18]
lea rdx, [rdx*2 + 2]
call fcn.1400015b8
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x30], 7
mov word [rbx + 0x18], di
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400013aa
cmp dword [rbx + 8], edi
je 0x1400013a0
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1400013a6
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
or qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000279c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140025020]
xor rax, rsp
mov qword [rsp + 0x28], rax
and qword [rdx], 0
mov rbx, rdx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x1400027de
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400027f4
mov rax, qword [rsp + 0x20]
test rax, rax
jns 0x1400027ef
mov eax, 0x800703ee
jmp 0x1400027f4
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140004200
add rsp, 0x30
pop rbx
ret
Function at 0x140002808
Capabilities:
Clear file content
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140025020]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
lea rdx, [rbp - 0x10]
call fcn.14000279c
test eax, eax
jns 0x140002861
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400029da
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov r14d, 0x80070000
test eax, eax
jne 0x140002898
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140002898
mov eax, ecx
jmp 0x1400029da
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
jne 0x1400028c2
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140002891
mov rdi, qword [rbp - 0x10]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
and qword [rbp - 0x28], rax
and qword [rbp - 0x20], rax
and qword [rbp - 0x18], rax
mov edx, 0x8000
mov byte [rbp - 0x40], al
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x28]
cmp rdi, rdx
jbe 0x1400028fb
call fcn.140003998
jmp 0x14000290c
mov rdx, rdi
call fcn.140003998
test rdi, rdi
je 0x140002991
mov r12, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x28]
mov rax, r12
sub rax, rsi
cmp rdi, rax
jae 0x14000293b
mov byte [rbp - 0x40], 0
lea r8, [rbp - 0x40]
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140003998
mov r12, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x28]
and dword [rbp - 0x30], 0
mov r13, r12
sub r13, rsi
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x30]
mov r8d, r13d
mov rdx, rsi
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1400029af
mov eax, dword [rbp - 0x30]
sub rdi, rax
and dword [rbp - 0x10], 0
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, r13d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1400029af
test rdi, rdi
jne 0x140002914
jmp 0x140002995
mov rsi, qword [rbp - 0x28]
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test eax, eax
je 0x1400029af
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x1400029c2
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx edi, ax
or edi, r14d
test eax, eax
cmovle edi, eax
jmp 0x1400029c4
xor edi, edi
test rsi, rsi
je 0x1400029d8
mov rdx, qword [rbp - 0x18]
sub rdx, rsi
mov rcx, rsi
call fcn.1400015b8
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140004200
lea r11, [rsp + 0x70]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140002a00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140025020]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, rdx
mov r12, rcx
lea rdx, [rbp - 0x20]
call fcn.14000279c
test eax, eax
jns 0x140002a52
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140002aea
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
jne 0x140002a83
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140002a83
mov eax, ecx
jmp 0x140002aea
mov r14, qword [rbp - 0x20]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
and qword [rbp - 0x40], rax
and qword [rbp - 0x38], rax
and qword [rbp - 0x30], rax
mov edx, 0x8000
lea rcx, [rbp - 0x40]
cmp r14, rdx
jbe 0x140002b0e
call fcn.140002118
movups xmm0, xmmword [r13]
movdqu xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.140002734
mov edi, eax
test eax, eax
jns 0x140002b38
mov rsi, qword [rbp - 0x40]
test rsi, rsi
je 0x140002ae8
mov rdx, qword [rbp - 0x30]
sub rdx, rsi
mov rcx, rsi
call fcn.1400015b8
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140004200
mov rsi, qword [rsp + 0xc0]
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov rdx, r14
call fcn.140002118
movups xmm0, xmmword [r13]
movdqu xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.140002734
mov edi, eax
test eax, eax
js 0x140002ad0
test r14, r14
je 0x140002bae
mov rdi, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
sub rax, rsi
cmp r14, rax
jae 0x140002b80
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.140002118
movups xmm0, xmmword [r13]
movdqu xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.140002734
mov edi, eax
test eax, eax
js 0x140002ad0
mov rdi, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x40]
and dword [rbp - 0x20], 0
mov r8, rdi
sub r8, rsi
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x20]
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x140002bbf
mov eax, dword [rbp - 0x20]
sub r14, rax
je 0x140002bb2
jmp 0x140002b40
mov rsi, qword [rbp - 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test eax, eax
jne 0x140002bd8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140002ad4
xor edi, edi
jmp 0x140002ad4
Function at 0x140002be0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140025020]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, r9
mov r12, r8
mov rbx, rdx
mov r15, rcx
xor edi, edi
mov dword [r9], edi
lea rdx, [rbp - 0x20]
call fcn.14000279c
test eax, eax
jns 0x140002c3b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140002ce0
mov rsi, qword [rbp - 0x20]
cmp rbx, rsi
jb 0x140002c4e
mov eax, 0x80070057
jmp 0x140002ce0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
jne 0x140002c80
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140002c80
mov eax, ecx
jmp 0x140002ce0
sub rsi, rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
mov edx, 0x8000
lea rcx, [rbp - 0x40]
cmp rsi, rdx
jbe 0x140002cfe
call fcn.140002118
movups xmm0, xmmword [r12]
movdqu xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.140002734
mov ebx, eax
test eax, eax
jns 0x140002d28
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140002cde
mov rdx, qword [rbp - 0x30]
sub rdx, rdi
mov rcx, rdi
call fcn.1400015b8
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140004200
add rsp, 0x80
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rdx, rsi
call fcn.140002118
movups xmm0, xmmword [r12]
movdqu xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.140002734
mov ebx, eax
test eax, eax
js 0x140002cc6
test rsi, rsi
je 0x140002da2
mov rbx, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x40]
and dword [rbp - 0x20], 0
mov rax, rbx
sub rax, rdi
cmp rsi, rax
jae 0x140002d74
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.140002118
movups xmm0, xmmword [r12]
movdqu xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.140002734
mov ebx, eax
test eax, eax
js 0x140002cc6
mov rbx, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x40]
mov r8, rbx
sub r8, rdi
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x20]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x140002db3
mov ecx, dword [rbp - 0x20]
add dword [r13], ecx
sub rsi, rcx
je 0x140002da6
jmp 0x140002d30
mov rdi, qword [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test eax, eax
jne 0x140002dcc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002cca
xor ebx, ebx
jmp 0x140002cca