joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009120
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov edi, r9d
mov rcx, qword [rcx]
mov rsi, r8
mov r10d, edx
cmp rcx, 0xffffffffffffffff
je 0x140009189
xor r9d, r9d
xor r8d, r8d
mov edx, r10d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
xor eax, eax
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x40], edi
sete al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 0x30]
lea eax, [r10 + rdi]
sub rdx, qword [rbx + 0x28]
mov ecx, eax
cmp rcx, rdx
ja 0x1400091c3
mov r8, r10
mov rdx, rdi
add r8, qword [rbx + 0x28]
mov r9, rdi
mov rcx, rsi
call fcn.14000d1b0
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a270
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2f0], rbx
mov r14, rdx
mov rbx, rcx
call fcn.140008fb0
test al, al
je 0x14000a2ed
mov rcx, rbx
call fcn.140009060
test al, al
je 0x14000a2ed
xor r12d, r12d
mov dword [rsp + 0x300], r12d
mov r9d, 4
lea r8, [rsp + 0x300]
mov edx, r9d
mov rcx, rbx
call fcn.140009120
test al, al
jne 0x14000a2f4
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000a2ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
xor al, al
jmp 0x14000a494
mov edi, 8
mov r15d, dword [rsp + 0x300]
add r15d, 0xfffffff8
movabs rax, 0x948b0fcd6e9e0653
mul r15
sub r15, rdx
shr r15, 1
add r15, rdx
shr r15, 8
lea rcx, [rsp + 0x1b0]
call fcn.140008320
lea rcx, [rsp + 0x38]
call fcn.140008cc0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000a341
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.140008360
nop
lea rcx, [rsp + 0x38]
call fcn.140007010
mov ebp, r12d
test r15d, r15d
je 0x14000a48b
movabs r13, 0xbe82fa0be82f9f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000a3ca
xor r9d, r9d
xor r8d, r8d
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x308], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x308]
mov r8d, 0x144
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x308], 0x144
sete al
test al, al
je 0x14000a470
jmp 0x14000a3fa
mov rdx, qword [rbx + 0x30]
sub rdx, qword [rbx + 0x28]
lea ecx, [rdi + 0x144]
cmp rcx, rdx
ja 0x14000a470
mov r8d, edi
add r8, qword [rbx + 0x28]
mov edx, 0x144
mov r9d, edx
lea rcx, [rsp + 0x60]
call fcn.14000d1b0
add edi, 0x144
mov r8d, 0x144
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1b0]
call fcn.140008450
test al, al
je 0x14000a470
mov rsi, qword [r14]
lea r9, [rsp + 0x60]
mov r8, qword [rsi + 8]
mov rdx, rsi
mov rcx, r14
call fcn.14000b090
mov rdx, qword [r14 + 8]
mov rcx, r13
sub rcx, rdx
cmp rcx, 1
jb 0x14000a463
lea rcx, [rdx + 1]
mov qword [r14 + 8], rcx
mov qword [rsi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
inc ebp
cmp ebp, r15d
jb 0x14000a372
jmp 0x14000a48b
lea rcx, str.list_T__too_long
call fcn.14007e074
int3
mov dil, 1
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000a48d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
jmp 0x14000a48d
xor edi, edi
movzx eax, dil
xor eax, 1
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000aca0
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [r11 + 0x20], rax
mov dword [r11 + 0x18], eax
xor edx, edx
mov rcx, qword [rsi]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test eax, eax
jne 0x14000ad0e
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14000acf9
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rdi], rax
or ebx, 0xffffffff
jmp 0x14000ae2d
mov rcx, rbp
call fcn.14007b84c
mov rbx, rax
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, qword [rsi]
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rbx
test eax, eax
jne 0x14000ad4d
call fcn.14007b854
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14000acf9
mov ecx, 0x80004005
call fcn.14000b790
int3
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0xa8]
lea rdx, reloc.SHELL32.dll_PathGetShortPath
call sub.VERSION.dll_VerQueryValueW
mov rcx, rbx
test eax, eax
jne 0x14000ad91
call fcn.14007b854
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14000acf9
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rsp + 0xa8]
movzx ebp, word [rax + 0x12]
movzx r14d, word [rax + 0x10]
movzx r15d, word [rax + 0x16]
movzx r12d, word [rax + 0x14]
call fcn.14007b854
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14000adc9
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r15d
mov r9d, r14d
mov r8d, ebp
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x38]
call fcn.14000bb10
mov r14, qword [rsp + 0x38]
lea rcx, [r14 - 0x18]
call fcn.14000b7c0
add rax, 0x18
mov qword [rdi], rax
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x14000ae2d
mov rcx, qword [r14 - 0x18]
mov rax, qword [rcx]
lea rdx, [r14 - 0x18]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14000ae47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rdi
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000c620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000c653
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000c69a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000c695
nop
cmp rbx, rcx
jae 0x14000c69a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000c680
cmp rbx, rcx
jb 0x14000c69e
xor eax, eax
jmp 0x14000c6aa
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d470
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov rax, rsp
push rbp
push rsi
push r14
sub rsp, 0x170
add dword [rcx + 0x58], r8d
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
test r8d, r8d
jle 0x14000d65a
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r15
nop dword [rax + rax]
movsxd rax, dword [rsi + 0x54]
lea rcx, [rsi + 0x14]
mov edi, 0x40
mov rdx, r14
sub edi, dword [rsi + 0x54]
cmp ebp, edi
cmovl edi, ebp
add rcx, rax
movsxd rbx, edi
mov r8, rbx
call fcn.1400ac270
add dword [rsi + 0x54], edi
sub ebp, edi
add r14, rbx
cmp dword [rsi + 0x54], 0x40
jne 0x14000d62a
mov r12d, dword [rsi]
lea rbx, [rsp + 0x20]
mov r13d, dword [rsi + 4]
lea rdx, [rsi + 0x16]
mov r9d, dword [rsi + 8]
sub rbx, rsi
mov r11d, dword [rsi + 0xc]
mov edi, r12d
mov r15d, dword [rsi + 0x10]
mov r8d, r13d
mov r10d, reloc.WS2_32.dll_recv
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx - 2]
movzx eax, byte [rdx - 1]
lea rdx, [rdx + 4]
shl eax, 0x10
shl ecx, 0x18
add ecx, eax
movzx eax, byte [rdx - 4]
shl eax, 8
add ecx, eax
movzx eax, byte [rdx - 3]
add ecx, eax
mov dword [rbx + rdx - 0x1a], ecx
sub r10, 1
jne 0x14000d520
lea rcx, [rsp + 0x28]
lea edx, [r10 + 0x40]
nop word [rax + rax]
mov eax, dword [rcx + 0x2c]
xor eax, dword [rcx + 0x18]
xor eax, dword [rcx - 8]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
rol eax, 1
mov dword [rcx + 0x34], eax
sub rdx, 1
jne 0x14000d560
nop word [rax + rax]
cmp rdx, 0x14
jge 0x14000d59e
mov eax, r8d
mov ecx, r9d
not eax
and ecx, r8d
and eax, r11d
mov r10d, 0x5a827999
or eax, ecx
jmp 0x14000d5da
cmp rdx, 0x28
jge 0x14000d5ac
mov r10d, 0x6ed9eba1
jmp 0x14000d5d1
cmp rdx, 0x3c
jge 0x14000d5cb
mov eax, r9d
mov ecx, r9d
or eax, r8d
and ecx, r8d
and eax, r11d
mov r10d, 0x8f1bbcdc
or eax, ecx
jmp 0x14000d5da
mov r10d, 0xca62c1d6
mov eax, r11d
xor eax, r9d
xor eax, r8d
mov ecx, edi
rol ecx, 5
add ecx, dword [rsp + rdx*4 + 0x20]
inc rdx
add ecx, eax
add ecx, r10d
add ecx, r15d
mov r15d, r11d
mov r11d, r9d
mov r9d, r8d
ror r9d, 2
mov r8d, edi
mov edi, ecx
cmp rdx, 0x50
jl 0x14000d580
add dword [rsi + 8], r9d
lea eax, [r12 + rcx]
add dword [rsi + 0xc], r11d
add dword [rsi + 0x10], r15d
mov dword [rsi], eax
lea eax, [r8 + r13]
mov dword [rsi + 4], eax
mov dword [rsi + 0x54], 0
test ebp, ebp
jg 0x14000d4b0
mov r15, qword [rsp + 0x160]
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x1a0]
mov rdi, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x190]
add rsp, 0x170
pop r14
pop rsi
pop rbp
ret
Function at 0x14000e060
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
test r8d, r8d
jle 0x14000e2da
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push r15
sub rsp, 0x140
mov qword [rax - 0x10], rbx
mov r10, rcx
mov qword [rax - 0x18], rbp
xor r15d, r15d
mov qword [rax - 0x20], rsi
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r13
mov qword [rax - 0x40], r14
nop dword [rax]
nop word [rax + rax]
mov eax, r15d
lea r9, [rsp]
shl eax, 6
movsxd r11, eax
add r11, rdx
xor r8d, r8d
nop dword [rax]
nop word [rax + rax]
lea eax, [r8*4]
inc r8d
movsxd rcx, eax
lea r9, [r9 + 4]
movzx eax, byte [r11 + rcx + 1]
movzx edx, byte [rcx + r11]
shl edx, 8
or edx, eax
movzx eax, byte [r11 + rcx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [r11 + rcx + 3]
shl edx, 8
or edx, eax
mov dword [r9 - 4], edx
cmp r8d, 0x10
jl 0x14000e0d0
lea rax, [rsp + 0x38]
mov r11d, Ordinal_50
nop dword [rax]
mov edx, dword [rax]
mov r9d, edx
mov r8d, dword [rax - 0x34]
lea rax, [rax + 4]
mov ecx, edx
rol r9d, 0xf
shr edx, 0xa
rol ecx, 0xd
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 7
mov edx, r8d
shr r8d, 3
rol edx, 0xe
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax - 0x3c]
add r9d, dword [rax - 0x18]
mov dword [rax + 4], r9d
sub r11, 1
jne 0x14000e120
mov r11d, dword [r10 + 0x88]
xor ebx, ebx
mov edi, dword [r10 + 0x8c]
mov esi, dword [r10 + 0x90]
mov r13d, dword [r10 + 0x94]
mov r9d, dword [r10 + 0x98]
mov ebp, dword [r10 + 0x9c]
mov r14d, dword [r10 + 0xa0]
mov r12d, dword [r10 + 0xa4]
lea r10, [0x14012d720]
nop word [rax + rax]
mov r8d, r9d
mov eax, r9d
rol eax, 7
mov ecx, r9d
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, r14d
mov eax, r9d
mov edx, r11d
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, ebp
and eax, r9d
xor ecx, eax
mov eax, r11d
add r8d, ecx
rol eax, 0xa
add r8d, dword [rbx + r10]
xor edx, eax
add r8d, dword [rsp + rbx]
mov eax, r11d
ror eax, 2
add r8d, r12d
xor edx, eax
mov ecx, edi
xor ecx, esi
mov eax, edi
and eax, esi
and ecx, r11d
xor ecx, eax
mov r12d, r14d
add edx, ecx
mov r14d, ebp
mov ebp, r9d
add rbx, 4
lea r9d, [r8 + r13]
mov r13d, esi
mov esi, edi
mov edi, r11d
lea r11d, [rdx + r8]
cmp rbx, 0x100
jl 0x14000e1b0
mov r10, qword [rsp + 0x150]
mov eax, r12d
mov rdx, qword [rsp + 0x158]
inc r15d
mov dword [rsp + 0x168], r12d
add dword [r10 + 0x88], r11d
add dword [r10 + 0x8c], edi
add dword [r10 + 0x90], esi
add dword [r10 + 0x94], r13d
add dword [r10 + 0x98], r9d
add dword [r10 + 0x9c], ebp
add dword [r10 + 0xa0], r14d
add dword [r10 + 0xa4], eax
cmp r15d, dword [rsp + 0x160]
jl 0x14000e0b0
mov r14, qword [rsp + 0x108]
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x128]
mov rbp, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x138]
add rsp, 0x140
pop r15
ret
Function at 0x14000e890
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov r14, rdx
mov rdi, rcx
xor bl, bl
cmp qword [rcx + 0x18], 0x10
jb 0x14000e8c1
mov rcx, qword [rcx]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000e934
mov dword [rsp + 0x80], ebp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov edx, eax
mov rcx, r14
call fcn.14000d0a0
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x80]
mov r8d, ebx
mov rdx, qword [r14]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rcx, rdi
call fcn.140007010
movzx eax, bl
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x14000e960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
xor dil, dil
mov rsi, rdx
cmp qword [rcx + 0x18], 0x10
mov rbx, rcx
jb 0x14000e98a
mov rcx, qword [rcx]
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000e9fe
mov r8d, dword [rsi + 8]
lea r9, [rsp + 0x60]
sub r8d, dword [rsi]
mov rcx, rax
mov rdx, qword [rsi]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsi + 8]
mov eax, 1
sub rdx, qword [rsi]
mov ecx, dword [rsp + 0x60]
cmp rcx, rdx
movzx edi, dil
cmove edi, eax
mov rcx, rbx
call fcn.140007010
mov rbx, qword [rsp + 0x68]
movzx eax, dil
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000f300
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x290
mov rsi, rcx
mov rdi, rdx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14000f328
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [rdi]
xor r15d, r15d
mov qword [rsp + 0x2c0], rbx
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rdi]
mov qword [rax + 8], rax
mov qword [rdi + 8], r15
cmp rcx, qword [rdi]
je 0x14000f360
nop dword [rax]
mov rbx, qword [rcx]
call fcn.14007b800
mov rcx, rbx
cmp rbx, qword [rdi]
jne 0x14000f350
cmp qword [rsi + 0x20], 0x10
lea rcx, [rsi + 8]
jb 0x14000f36e
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14000f3e8
lea r9, [rsp + 0x2b0]
mov dword [rsp + 0x2b0], r15d
mov r8d, 4
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x2b0]
cmp ecx, 4
jae 0x14000f3ef
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x14000f3e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], 0xffffffffffffffff
xor al, al
jmp 0x14000f519
mov eax, dword [rsp + 0x2b8]
sub eax, ecx
mov qword [rsp + 0x280], r14
mov ecx, eax
movabs rax, 0x6a63bd81a98ef607
mul rcx
lea rcx, [rsp + 0x40]
mov r14, rdx
shr r14, 7
call fcn.140008320
cmp qword [rsi + 0x40], 0x10
lea rdx, [rsi + 0x28]
jb 0x14000f42e
mov rdx, qword [rdx]
mov qword [rsp + 0x2c8], rbp
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x288], r12
call fcn.140008360
mov ebx, r15d
test r14d, r14d
je 0x14000f4f9
movabs r12, 0xc7ce0c7ce0c7cd
nop
mov rcx, qword [rsi]
lea r9, [rsp + 0x2b0]
mov r8d, 0x134
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x2b0], 0x134
jb 0x14000f52d
mov r8d, 0x134
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.140008450
test al, al
je 0x14000f52d
mov rbp, qword [rdi]
lea r9, [rsp + 0x140]
mov rdx, rbp
mov rcx, rdi
mov r8, qword [rbp + 8]
call fcn.1400104e0
mov rdx, qword [rdi + 8]
mov rcx, r12
sub rcx, rdx
cmp rcx, 1
jb 0x14000f547
lea rcx, [rdx + 1]
inc ebx
mov qword [rdi + 8], rcx
mov qword [rbp + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp ebx, r14d
jb 0x14000f460
xor ebx, ebx
mov r12, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x2c8]
mov r14, qword [rsp + 0x280]
movzx eax, bl
xor eax, 1
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r15
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
mov bl, 1
cmp rcx, 0xffffffffffffffff
je 0x14000f4fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], 0xffffffffffffffff
jmp 0x14000f4fb
lea rcx, str.list_T__too_long
call fcn.14007e074
int3
Function at 0x14000f930
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
xor dil, dil
cmp qword [rdx + 0x18], 0x10
jb 0x14000f96e
mov rcx, qword [rdx]
jmp 0x14000f971
mov rcx, rsi
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000fafe
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp dword [r14 + 4], eax
sete dil
test dil, dil
je 0x14000faf4
cmp ebx, 1
jne 0x14000faf4
mov dword [rsp + 0xc8], r12d
mov edx, ebp
lea rcx, [rsp + 0x48]
call fcn.14000b2a0
nop
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xc8]
mov r8d, ebp
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0xc8], ebp
sete dil
test dil, dil
je 0x14000fa9f
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14000ea30
lea rdx, [r14 + 0x108]
cmp byte [rdx], r12b
jne 0x14000fa37
mov ebx, r12d
jmp 0x14000fa49
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14000fa40
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov r8, rbx
mov rdi, qword [rsp + 0x70]
cmp rdi, rbx
cmovb r8, rdi
test r8, r8
je 0x14000fa77
call fcn.1400ad3f0
test eax, eax
jne 0x14000fa8c
cmp rdi, rbx
jae 0x14000fa81
or eax, 0xffffffff
jmp 0x14000fa8a
mov eax, r12d
cmp rdi, rbx
seta al
test eax, eax
sete dil
lea rcx, [rsp + 0x60]
call fcn.140007010
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14000faf4
mov rax, qword [rsp + 0x58]
sub rax, rbx
cmp rax, 0x1000
jb 0x14000faec
test bl, 0x1f
je 0x14000fabf
call fcn.1400e462c
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14000face
call fcn.1400e462c
int3
sub rbx, rax
cmp rbx, 8
jae 0x14000fadd
call fcn.1400e462c
int3
cmp rbx, 0x27
jbe 0x14000fae9
call fcn.1400e462c
int3
mov rbx, rax
mov rcx, rbx
call fcn.14007b800
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call fcn.140007010
movzx eax, dil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140010370
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rsi, rdx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rbx, [rcx + 8]
cmp qword [rbx + 0x18], 0x10
jb 0x1400103a5
mov rbx, qword [rbx]
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x1400103bd
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x40], rax
or rbp, 0xffffffffffffffff
test rbx, rbx
je 0x14001040f
test rbx, 0xffffffffffff0000
jne 0x140010401
movzx ebx, bx
xor edx, edx
mov ecx, ebx
call fcn.14000b6e0
test rax, rax
je 0x140010422
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000bdc0
jmp 0x140010422
mov rax, rbp
inc rax
cmp byte [rbx + rax], 0
jne 0x140010404
jmp 0x140010411
mov eax, edi
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000c510
nop
lea r8, [0x14012d6a0]
lea rdx, str..dat
lea rcx, [rsp + 0x40]
call fcn.14000c200
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], rdi
test eax, eax
jne 0x140010476
cmp qword [rsi + 0x18], 0x10
jb 0x140010464
mov rax, qword [rsi]
jmp 0x140010467
mov rax, rsi
mov byte [rax], 0
xor r8d, r8d
lea rdx, [0x14012d6a0]
jmp 0x14001049f
cmp qword [rsi + 0x18], 0x10
jb 0x140010482
mov rax, qword [rsi]
jmp 0x140010485
mov rax, rsi
mov byte [rax], 0
cmp byte [rbx], 0
je 0x140010499
mov rdi, rbp
inc rdi
cmp byte [rbx + rdi], 0
jne 0x140010490
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1400080d0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x1400104bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret