joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029be4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d184
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d184
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d34
cmp rax, 0xffffffffffffffff
je 0x140029d34
xor edi, edi
test rbp, rbp
jle 0x140029cdf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fe04
mov rbx, rax
test rax, rax
jne 0x140029c6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cd5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ab20
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de60
cmp eax, 0xffffffff
je 0x140029cb5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c7c
mov edx, r15d
mov ecx, r14d
call fcn.14001ab20
jmp 0x140029cd5
cmp byte [rsi + 0x38], dil
je 0x140029ccc
cmp dword [rsi + 0x34], 5
jne 0x140029ccc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cd5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b464
jmp 0x140029d48
jns 0x140029d48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d184
cmp rax, 0xffffffffffffffff
jne 0x140029d00
cmp byte [rsi + 0x30], dil
je 0x140029d48
mov edi, dword [rsi + 0x2c]
jmp 0x140029d48
mov ecx, r14d
call fcn.140019658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029d48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d41
mov eax, dword [rsi + 0x2c]
jmp 0x140029d46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d184
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ae40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140f565e0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f565ea
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f56613
pop rbp
sub rbp, 0x33
sub rbp, 0xf565e0
sub rsp, 0x20
jmp 0x140f56632
mov rax, 0xf565e0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x4314dcd
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f56651
jmp 0x140f56668
test dword [rsp + 0x46], eax
int1
int 0xcd
int 0x85
or al, 0xc5
int3
Function at 0x140003280
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400032a4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140003332
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003300
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140003300
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140033c50
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000331d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003325
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400032c1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140003410
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140003349
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000334b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000337d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140033c50
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000340d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400033b8
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
cmp rsi, 0xfff
jbe 0x1400033ee
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14001707c
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000340d
cmp rsi, rax
ja 0x1400033c1
test rsi, rsi
je 0x14000340d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001707c
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140005a70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140005ad1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140005a90
mov ecx, dword [r9]
jmp 0x140005bbb
cmp ecx, 0x4e0
jb 0x140005bbb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140005af0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140005b40
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140006130
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.14000c0a0
sub rsp, rax
mov rax, qword [0x140048080]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8d, 0x3e
lea rdx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea rcx, [rsp + 0x30]
call fcn.140002480
nop
call fcn.14000b23c
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, 1
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x1400061c0
mov dword [rsp + 0x50], 0x270
mov ebp, dword [rsp + 0x40]
dec ebp
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
test r14, r14
je 0x1400062e9
mov r12d, 0x80000000
xor ebp, r12d
nop word [rax + rax]
lea rcx, [rsp + 0x50]
cmp ebp, 0x7fffffff
jne 0x140006246
call fcn.140005a70
mov ecx, eax
jmp 0x140006288
lea edi, [rbp - 0x7fffffff]
call fcn.140005a70
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x140006284
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x140006284
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.140005a70
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x140006270
shr rcx, 0x20
lea eax, [rcx + r12]
xor eax, r12d
lea rcx, [rsp + 0x30]
cmp r13, 0xf
cmova rcx, r15
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400062cf
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400062c4
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400062df
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call fcn.1400055a0
sub r14, 1
jne 0x140006230
cmp r13, 0xf
jbe 0x14000631c
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140006314
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006350
mov rcx, r15
call fcn.14000b7fc
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.14000b7a0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140015bfc
int3
Function at 0x14000c540
Capabilities:
Parse pe header

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

Function at 0x140019600
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000c0a0
sub rsp, rax
mov rax, qword [0x140048080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140020028
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001964f
mov rax, rbp
jmp 0x140019757
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4a700]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140025a94
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4a700]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140019753
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140019753
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140025a94
test rax, rax
js 0x140019753
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140019753
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140019745
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140019745
cmp byte [rcx], 0xd
jne 0x14001972b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001973a
cmp byte [rcx + 1], 0xa
jne 0x14001973a
inc rcx
jmp 0x14001973a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x484c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001970d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140019757
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b7a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001cff0
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 0x14001d05f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d05f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d05f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d05f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d05f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d05f
cmp dword [rcx + 0xf8], 0
je 0x14001d05f
mov ecx, ebx
call fcn.14001d11c
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.14001ceec
nop
cmp dword [rbp + 0x20], 0
je 0x14001d0ad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001d0b8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001cff0

Function at 0x14001d200
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001cff0
Function at 0x140023968
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14002399d
call fcn.1400184c4
mov dword [rax], 0x16
call fcn.140015bdc
jmp 0x140023af9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
mov ebp, 1
test bpl, al
je 0x140023af9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test bpl, al
jne 0x140023af9
mov eax, dword [rcx + 0x14]
shr eax, 1
test bpl, al
je 0x1400239d4
lock or dword [rcx + 0x14], 0x10
jmp 0x140023af9
lock or dword [rcx + 0x14], ebp
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400239e7
call fcn.14002496c
mov r14d, dword [rbx + 0x10]
cmp r14d, ebp
jne 0x1400239f8
mov rax, qword [rbx]
mov r15b, byte [rax]
jmp 0x1400239fb
xor r15b, r15b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140020028
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400252bc
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140023ae7
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140023a8e
mov rcx, rbx
call fcn.140020028
cmp eax, 0xffffffff
je 0x140023a79
mov rcx, rbx
call fcn.140020028
cmp eax, 0xfffffffe
je 0x140023a79
mov rcx, rbx
call fcn.140020028
movsxd rdi, eax
lea rsi, [0x14004a700]
mov rcx, rbx
sar rdi, 6
call fcn.140020028
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140023a80
lea rdx, [0x140048470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140023a8e
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140023ab4
mov eax, dword [rbx + 0x14]
shr eax, 6
test bpl, al
je 0x140023ab4
mov eax, dword [rbx + 0x14]
shr eax, 8
test bpl, al
jne 0x140023ab4
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp r14d, ebp
jne 0x140023acf
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, r15b
or cx, ax
dec dword [rbx + 0x10]
jmp 0x140023adb
movzx ecx, word [rdx]
mov ebp, 2
add dword [rbx + 0x10], 0xfffffffe
lea rax, [rdx + rbp]
mov qword [rbx], rax
movzx eax, cx
jmp 0x140023afe
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
jmp 0x140023968
Function at 0x140023b18
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140023b4a
call fcn.1400184c4
mov dword [rax], 0x16
call fcn.140015bdc
jmp 0x140023c69
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140023c69
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140023c69
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140023b79
lock or dword [rcx + 0x14], 0x10
jmp 0x140023c69
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140023b8d
call fcn.14002496c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140020028
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400252bc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140023c57
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140023c22
mov rcx, rsi
call fcn.140020028
cmp eax, edi
je 0x140023c0d
mov rcx, rsi
call fcn.140020028
cmp eax, 0xfffffffe
je 0x140023c0d
mov rcx, rsi
call fcn.140020028
movsxd rbx, eax
lea r14, [0x14004a700]
mov rcx, rsi
sar rbx, 6
call fcn.140020028
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140023c14
lea rdx, [0x140048470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140023c22
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140023c46
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140023c46
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140023c46
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140023c6c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140023c84
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14002399d
call fcn.1400184c4
mov dword [rax], 0x16
call fcn.140015bdc
jmp 0x140023af9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
mov ebp, 1
test bpl, al
je 0x140023af9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test bpl, al
jne 0x140023af9
mov eax, dword [rcx + 0x14]
shr eax, 1
test bpl, al
je 0x1400239d4
lock or dword [rcx + 0x14], 0x10
jmp 0x140023af9
lock or dword [rcx + 0x14], ebp
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400239e7
call fcn.14002496c
mov r14d, dword [rbx + 0x10]
cmp r14d, ebp
jne 0x1400239f8
mov rax, qword [rbx]
mov r15b, byte [rax]
jmp 0x1400239fb
xor r15b, r15b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140020028
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400252bc
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140023ae7
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140023a8e
mov rcx, rbx
call fcn.140020028
cmp eax, 0xffffffff
je 0x140023a79
mov rcx, rbx
call fcn.140020028
cmp eax, 0xfffffffe
je 0x140023a79
mov rcx, rbx
call fcn.140020028
movsxd rdi, eax
lea rsi, [0x14004a700]
mov rcx, rbx
sar rdi, 6
call fcn.140020028
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140023a80
lea rdx, [0x140048470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140023a8e
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140023ab4
mov eax, dword [rbx + 0x14]
shr eax, 6
test bpl, al
je 0x140023ab4
mov eax, dword [rbx + 0x14]
shr eax, 8
test bpl, al
jne 0x140023ab4
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp r14d, ebp
jne 0x140023acf
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, r15b
or cx, ax
dec dword [rbx + 0x10]
jmp 0x140023adb
movzx ecx, word [rdx]
mov ebp, 2
add dword [rbx + 0x10], 0xfffffffe
lea rax, [rdx + rbp]
mov qword [rbx], rax
movzx eax, cx
jmp 0x140023afe
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
jmp 0x140023968
Function at 0x140024e10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004a700]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140024e6e
cmp word [rdx], r12w
jne 0x140024e6e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140024e74
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140024fcf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140024faa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140024ead
mov rcx, r9
jmp 0x140024ed0
cmp r9, rdx
jae 0x140024ee7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140024e91
jmp 0x140024fcf
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024fa4
cmp dword [rsp + 0x80], edi
je 0x140024fa4
mov rdx, r14
lea r11, [0x14004a700]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140024f7d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140024f50
mov word [rbx], r12w
jmp 0x140024fcb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140024f59
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140024fcb
cmp word [rsp + 0x70], r12w
jne 0x140024f8a
cmp rbx, rsi
je 0x140024f4a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140025a9c
cmp word [rsp + 0x70], r12w
je 0x140024fcf
mov word [rbx], r13w
jmp 0x140024fcb
lea r11, [0x14004a700]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140024fc7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140024fcf
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret