joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002440
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rbp, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800024e7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800024e7
mov r11d, dword [rbx + 0x20]
nop word [rax + rax]
dec r9d
mov r8d, 0xc470c404
lea rdx, [r11 + r9*4]
mov ecx, dword [rdx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1800024e2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1800024c0
cmp r8d, 0x196c2bc2
je 0x1800024ec
test r9d, r9d
jne 0x1800024a0
mov rax, qword [rax]
jmp 0x180002470
mov ecx, dword [rbx + 0x24]
mov edx, dword [rbx + 0x1c]
add rcx, r10
add rdx, r10
movzx ecx, word [rcx + r9*2]
mov eax, dword [rdx + rcx*4]
mov rcx, rbp
add rax, r10
call rax
mov rcx, 0xffffffffffffffff
lea rsi, [rax + 1]
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1800104d0
mov rcx, qword gs:[0x60]
mov rdi, rax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov r11d, dword [rdx + r10 + 0x88]
add r11, r10
cmp r11, r10
je 0x1800025b5
mov r9d, dword [r11 + 0x18]
test r9d, r9d
je 0x1800025b5
mov ebx, dword [r11 + 0x20]
nop word [rax + rax]
dec r9d
lea rdx, [rbx + r9*4]
mov r8d, dword [rdx + r10]
mov edx, 0xaf4e10b3
add r8, r10
movzx eax, byte [r8]
inc r8
test al, al
je 0x1800025b0
nop
movsx eax, al
lea r8, [r8 + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [r8 - 1]
test al, al
jne 0x180002590
cmp edx, 0xbe616783
je 0x1800025ba
test r9d, r9d
jne 0x180002570
mov rcx, qword [rcx]
jmp 0x180002540
mov ecx, dword [r11 + 0x24]
mov r8, rsi
add rcx, r10
mov rdx, rbp
movzx r9d, word [rcx + r9*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r10
mov eax, dword [rcx + r9*4]
mov rcx, rdi
add rax, r10
call rax
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002600
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800026a7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800026a7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xfca670ae
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1800026a2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180002680
cmp r8d, 0x3ca98e2
je 0x1800026ac
test r9d, r9d
jne 0x180002660
mov rax, qword [rax]
jmp 0x180002630
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rsp + 0x30]
add rax, r10
call rax
movd xmm0, dword [rsp + 0x30]
mov rax, rsi
movd xmm2, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x38]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm2
movsd qword [rsi], xmm1
movsd qword [rsi + 8], xmm0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002700
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x110
movaps xmmword [rax - 0x18], xmm6
mov r14, r8
movaps xmmword [rax - 0x28], xmm7
mov rsi, rdx
movaps xmmword [rax - 0x38], xmm8
mov rbp, rcx
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd r9, dword [r10 + 0x3c]
mov edi, dword [r9 + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x1800027d7
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x1800027d7
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xac96de0c
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1800027d2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1800027b0
cmp r8d, 0x73950ea
je 0x1800027dc
test r9d, r9d
jne 0x180002790
mov rax, qword [rax]
jmp 0x180002760
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, rbp
add rax, r10
call rax
movsd xmm7, qword [rsi]
mov rcx, rbp
movsd xmm8, qword [rsi + 8]
addsd xmm7, qword [0x180013ab0]
addsd xmm8, qword [0x180013ab0]
movups xmm9, xmmword [0x1800139e8]
movups xmm10, xmmword [0x18001a2e8]
movaps xmm11, xmmword [r14]
movaps xmm6, xmmword [rsi]
call fcn.180002440
cmp word [rax], 0
je 0x180002856
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x180002840
xor edx, edx
add ecx, 1
je 0x18000285a
mov rdx, rax
jmp 0x18000285a
xor edx, edx
mov ecx, edx
mov rax, qword [0x1800167d0]
movaps xmm0, xmmword [0x180013cf0]
mov rbx, qword [0x180016840]
mov qword [rsp + 0x20], rax
mov rax, qword [0x18001a790]
movsd qword [rsp + 0x38], xmm6
unpckhpd xmm6, xmm6
movsd qword [rsp + 0x40], xmm6
movsd qword [rsp + 0x80], xmm7
movsd qword [rsp + 0x88], xmm8
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x68], 0
mov word [rsp + 0x90], 0x100
mov byte [rsp + 0x92], 1
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm11
movups xmmword [rsp + 0x6c], xmm10
movups xmmword [rsp + 0x94], xmm9
test rax, rax
jne 0x180002908
mov rax, qword [0x180016960]
lea r8, str.Canvas.K2_DrawText
add rax, 0x10061f0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x18001a790], rax
mov r9, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, rax
mov rcx, rbx
call qword [r9 + 0x268]
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r14
ret
Function at 0x180002960
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x110
movaps xmmword [rax - 0x18], xmm6
mov r14, r8
movaps xmmword [rax - 0x28], xmm7
mov rsi, rdx
movaps xmmword [rax - 0x38], xmm8
mov rbp, rcx
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd r9, dword [r10 + 0x3c]
mov edi, dword [r9 + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x180002a37
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x180002a37
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xadb2b61c
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x180002a32
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180002a10
cmp r8d, 0x71cee51a
je 0x180002a3c
test r9d, r9d
jne 0x1800029f0
mov rax, qword [rax]
jmp 0x1800029c0
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, rbp
add rax, r10
call rax
movsd xmm7, qword [rsi]
mov rcx, rbp
movsd xmm8, qword [rsi + 8]
addsd xmm7, qword [0x180013ab0]
addsd xmm8, qword [0x180013ab0]
movups xmm9, xmmword [0x1800139e8]
movups xmm10, xmmword [0x18001a2e8]
movaps xmm11, xmmword [r14]
movaps xmm6, xmmword [rsi]
call fcn.180002440
cmp word [rax], 0
je 0x180002ab6
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x180002aa0
xor edx, edx
add ecx, 1
je 0x180002aba
mov rdx, rax
jmp 0x180002aba
xor edx, edx
mov ecx, edx
mov rax, qword [0x1800167d0]
movaps xmm0, xmmword [0x180013cf0]
mov rbx, qword [0x180016840]
mov qword [rsp + 0x20], rax
mov rax, qword [0x18001a790]
movsd qword [rsp + 0x38], xmm6
unpckhpd xmm6, xmm6
movsd qword [rsp + 0x40], xmm6
movsd qword [rsp + 0x80], xmm7
movsd qword [rsp + 0x88], xmm8
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x68], 0
mov word [rsp + 0x90], 0x101
mov byte [rsp + 0x92], 1
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm11
movups xmmword [rsp + 0x6c], xmm10
movups xmmword [rsp + 0x94], xmm9
test rax, rax
jne 0x180002b68
mov rax, qword [0x180016960]
lea r8, str.Canvas.K2_DrawText
add rax, 0x10061f0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x18001a790], rax
mov r9, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, rax
mov rcx, rbx
call qword [r9 + 0x268]
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r14
ret
Function at 0x180006aa4
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [0x180011318], 0
jne 0x180006b3f
mov dword [rsp], 0
jmp 0x180006acf
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jae 0x180006b35
mov eax, dword [rsp]
mov dword [rsp + 4], eax
mov dword [rsp + 0xc], 8
jmp 0x180006af3
mov eax, dword [rsp + 0xc]
dec eax
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0xc], 0
jbe 0x180006b22
mov eax, dword [rsp + 4]
and eax, 1
test eax, eax
je 0x180006b16
mov eax, dword [rsp + 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [rsp + 4], eax
jmp 0x180006b20
mov eax, dword [rsp + 4]
shr eax, 1
mov dword [rsp + 4], eax
jmp 0x180006ae9
mov eax, dword [rsp]
lea rcx, [0x180010f18]
mov edx, dword [rsp + 4]
mov dword [rcx + rax*4], edx
jmp 0x180006ac7
mov dword [0x180011318], 1
mov dword [rsp + 8], 0xffffffff
mov dword [rsp], 0
jmp 0x180006b58
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180006b90
mov eax, dword [rsp + 8]
shr eax, 8
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
xor ecx, dword [rsp + 8]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x180010f18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 8], eax
jmp 0x180006b50
mov eax, dword [rsp + 8]
not eax
add rsp, 0x18
ret
Function at 0x18000869c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x70], 0
jne 0x1800086bd
xor eax, eax
jmp 0x180008818
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
jmp 0x18000871c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x180008816
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.18000bc1c
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.180006aa4
mov dword [rsp + 0x24], eax
cmp qword [rsp + 0x38], 0
je 0x180008811
cmp qword [rsp + 0x28], 0
je 0x180008811
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x24], eax
jne 0x180008811
cmp dword [rsp + 0x80], 0
je 0x1800087b9
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [0x180010ca8]
jmp 0x180008818
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x180008818
jmp 0x180008712
xor eax, eax
add rsp, 0x68
ret
Function at 0x18000c99c
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x811c9dc5
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
jmp 0x18000c9ca
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 8], rax
jae 0x18000c9ff
mov rax, qword [rsp + 8]
movsx eax, byte [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
imul eax, dword [rsp], 0x1000193
mov dword [rsp], eax
jmp 0x18000c9bd
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x18000caac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
jmp 0x18000cad8
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x20], eax
jge 0x18000cbda
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x104]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x104], eax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x104]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x108]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x108], eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rcx + 0x108]
mov rcx, qword [rsp + 0x40]
mov edx, dword [rcx + 0x104]
mov rcx, rax
call fcn.18000cc68
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x104]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x40]
movsxd rcx, dword [rcx + 0x108]
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov byte [rdx + rcx], al
jmp 0x18000cace
add rsp, 0x38
ret
Function at 0x14002e140
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400e9070]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebp, ebp
mov rsi, rdx
cmp dword [rcx + 0xc8], 1
mov rdi, rcx
jne 0x14002e1f5
lea rdx, [rcx + 0x68]
mov word [rsp + 0x48], bp
cmp qword [rdx + 0x18], 8
mov qword [rsp + 0x40], rbp
jb 0x14002e188
mov rdx, qword [rdx]
lea r8, str.rb__ccsUTF_8
lea rcx, [rsp + 0x40]
call fcn.14008f1e0
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x14002e1f5
mov edx, 1
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 1]
call fcn.140090eb4
mov rcx, qword [rsp + 0x40]
call fcn.14008f364
movzx eax, word [rsp + 0x48]
movzx ecx, byte [rsp + 0x49]
cmp al, 0xff
jne 0x14002e1d3
cmp cl, 0xfe
je 0x14002e1f5
cmp cl, 0xff
jne 0x14002e1dc
cmp al, 0xfe
je 0x14002e1f5
mov rcx, qword [rsi]
test rcx, rcx
je 0x14002e1ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbp
mov rcx, rdi
call fcn.1400311c0
lea rbx, [rdi + 0x68]
mov r8b, 1
mov rcx, rbx
call fcn.140042b20
test eax, eax
je 0x14002e22b
cmp eax, 1
jne 0x14002e2a9
movzx edx, al
mov rcx, rbx
call fcn.14003b560
test al, al
je 0x14002e2a9
mov qword [rsi], 0xffffffffffffffff
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14002e238
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x200080
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14002e2f7
cmp qword [rbx + 0x18], 8
jb 0x14002e276
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x200080
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14002e2ad
xor al, al
jmp 0x14002e2f9
cmp dword [rdi + 0xc8], 1
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
jne 0x14002e2d7
mov ecx, 0xfeff
lea rdx, [rsp + 0x48]
mov word [rsp + 0x48], cx
mov r8d, 2
jmp 0x14002e2ee
mov word [rsp + 0x48], 0xbbef
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x4a], 0xbf
mov r8d, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140079b50
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002e610
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e9070]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
cmp byte [rcx + 0x98], 0
jne 0x14002e644
xor al, al
jmp 0x14002e844
lea rdx, [rcx + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140004480
nop
lea rdi, [rbx + 0x48]
cmp qword [rsp + 0x68], 0
jne 0x14002e678
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002e66c
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.14002e320
test al, al
je 0x14002e698
lea rdx, [rbx + 0x90]
cmp qword [rdx], 0
jne 0x14002e69f
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140049d6d.0]
test al, al
jne 0x14002e69f
xor bl, bl
jmp 0x14002e803
xor esi, esi
cmp qword [rbx + 0xd0], rsi
jne 0x14002e6c1
lea ecx, [rsi + 8]
call fcn.140079b80
mov qword [rsp + 0x40], rax
mov qword [rax], rsi
mov qword [rbx + 0xd0], rax
cmp qword [rdi + 0x18], 8
jb 0x14002e6cb
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], si
jne 0x14002e6e1
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140003250
mov rdi, qword [rbx + 0xd0]
cmp qword [rdi], rsi
jne 0x14002e750
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
jne 0x14002e750
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002e750
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rdi], rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14002e792
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e78d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e86c
call fcn.140079b70
lea rcx, [rsp + 0x48]
call fcn.140093624
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x158], rax
mov qword [rbx + 0x160], rax
cmp byte [rbx + 0x131], sil
je 0x14002e7f3
mov rax, qword [rbx + 0xd0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14002e7f3
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
jne 0x14002e7f3
mov rcx, rbx
call fcn.1400458a0
mov rcx, qword [rbx + 0xd0]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14002e7fa
mov byte [rbx + 0x131], sil
mov byte [rbx + 0x99], 1
mov bl, 1
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14002e841
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e83c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e866
call fcn.140079b70
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140079b50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140080d34
nop
call fcn.140080d34
nop
int3
Function at 0x14002e910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400e9070]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rsi, rcx
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x14002e940
mov rcx, qword [rcx + 0x90]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsi + 0x90]
lea r8d, [rbx + rbx]
xor ebp, ebp
lea r9, [rsp + 0x30]
mov rdx, rdi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x90]
lea r9, [rsp + 0x30]
lea r8d, [rbp + 4]
mov dword [rsp + 0x30], ebp
lea rdx, [0x1400cb3a8]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079b50
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002e9d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400e9070]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rsi, rcx
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14002ea00
mov rcx, qword [rcx + 0x90]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsi + 0x90]
lea r9, [rsp + 0x30]
xor ebp, ebp
mov r8d, ebx
mov rdx, rdi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x90]
lea r9, [rsp + 0x30]
lea r8d, [rbp + 2]
mov dword [rsp + 0x30], ebp
lea rdx, [0x1400cb3b0]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079b50
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret