joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f41a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx + 0x2e8]
mov r10d, 0x4029b95a
add r10d, 0x46e4d27
sub r10d, 0x1c05d812
mov r8d, dword [rcx + 0x2f4]
xor eax, r10d
xor r8d, r10d
xor r9d, r9d
add r8d, r8d
movd xmm2, eax
mov eax, dword [rcx + 0x308]
xor eax, 0x41f11c89
mov dword [rsp + 8], eax
movss xmm3, dword [rsp + 8]
mov al, byte [rdx]
cvtdq2ps xmm2, xmm2
test al, al
je 0x1400f4236
mov r10, qword [rcx + 0x300]
movzx eax, al
inc rdx
add rax, rax
movups xmm0, xmmword [r10 + rax*8]
xorps xmm0, xmmword [0x140148580]
mov al, byte [rdx]
movaps xmm1, xmm0
shufps xmm1, xmm0, 0xaa
subss xmm1, xmm0
mulss xmm1, xmm2
addss xmm1, xmm3
cvttss2si ecx, xmm1
sub ecx, r8d
add r9d, ecx
test al, al
jne 0x1400f41fa
mov eax, r9d
ret

Function at 0x1400f4334
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx + 0x2e8]
mov r10d, 0x38c9b3fe
xor r10d, 0x4d87c23d
sub r10d, 0xde55058
sub r10d, 0x3ed6f2fc
mov r8d, dword [rcx + 0x2f4]
xor eax, r10d
xor r8d, r10d
xor r11d, r11d
add r8d, r8d
mov r9d, r11d
movd xmm2, eax
mov eax, dword [rcx + 0x308]
xor eax, 0x41f11c89
mov dword [rsp + 8], eax
movss xmm3, dword [rsp + 8]
movzx eax, word [rdx]
cvtdq2ps xmm2, xmm2
test ax, ax
je 0x1400f43e4
mov r10, qword [rcx + 0x300]
movzx eax, ax
nop
sub rdx, 0x50be944b
add rdx, 0x50be944d
add rax, rax
movups xmm0, xmmword [r10 + rax*8]
xorps xmm0, xmmword [0x140148580]
movzx eax, word [rdx]
movaps xmm1, xmm0
shufps xmm1, xmm0, 0xaa
subss xmm1, xmm0
mulss xmm1, xmm2
addss xmm1, xmm3
cvttss2si ecx, xmm1
sub ecx, r8d
add r9d, ecx
test ax, ax
jne 0x1400f439a
mov eax, r9d
ret

Function at 0x1400f43e8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x12c1ada4
add rsp, 0x12c1ad04
xor ebx, ebx
mov rdi, rcx
mov qword [rax + 8], rbx
cmp qword [rcx + 0x2f8], rbx
je 0x1400f4488
mov edx, dword [rcx + 0x2ec]
mov ecx, 0x5b37ff19
xor ecx, 0x605ccfab
xor ecx, 0x5a777cd8
sub ecx, 0x388a1dfb
mov eax, dword [rdi + 0x2e8]
xor edx, ecx
xor eax, ecx
lea rcx, [rbx - 1]
imul edx, eax
lea eax, [rbx + 4]
movsxd rsi, edx
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.140099880
test rsi, rsi
jle 0x1400f44a5
mov rcx, qword [rdi + 0x2f8]
mov edx, dword [rcx + rbx*4]
xor edx, 0x74376334
mov dword [rax + rbx*4], edx
inc rbx
cmp rbx, rsi
jl 0x1400f4464
jmp 0x1400f44a5
lea rdx, [rsp + 0xb0]
call fcn.1400f460c
test al, al
je 0x1400f44f0
mov rax, qword [rsp + 0xb0]
lea rcx, [0x14000bb68]
mov qword [rsp + 0x98], 0x1c7f9ce7
xor qword [rsp + 0x98], 0x42c1196c
xor qword [rsp + 0x98], 0x5ebe8593
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rdi + 0x318]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rax
call fcn.1400f3504
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400f9180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
nop
sub rsp, 0x1ffe7491
add rsp, 0x1ffe7431
mov rbp, qword [rcx + 0xaf0]
lea rax, [rsp + 0x28]
mov rbx, qword [rcx + 0xab8]
xorps xmm0, xmm0
mov r14, rdx
mov qword [rsp + 0x20], rax
mov rsi, rcx
lea rcx, [rsp + 0x20]
lea rdx, [rbp + 1]
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.140017924
mov edi, 0x5d3576ce
sub edi, 0x47818a31
add edi, 0x16fd5be2
add edi, 0x1fe0a34
mov r9, rax
mov ecx, edi
mov r15d, 0x1fc5ffc8
xor r15d, 0x13722776
xor r15d, 0xcb7d841
test rbp, rbp
je 0x1400f9250
mov rdx, rax
sub rbx, rax
mov r8, rbp
nop dword [rax]
nop dword [rax + rax]
movzx eax, cx
lea rdx, [rdx + 2]
and ax, r15w
ror ecx, 8
xor ax, word [rbx + rdx - 2]
mov word [rdx - 2], ax
sub r8, 1
jne 0x1400f922f
xor ebx, ebx
mov word [r9 + rbp*2], bx
cmp word [rsi + 0xb40], bx
je 0x1400f929b
mov edx, ebx
cmp qword [rsi + 0xaf0], rbx
jbe 0x1400f929b
nop dword [rax + rax]
mov rax, qword [rsp + 0x20]
movzx ecx, word [rsi + 0xb40]
mov word [rax + rdx*2], cx
inc rdx
cmp rdx, qword [rsi + 0xaf0]
jb 0x1400f927b
mov rsi, qword [rsp + 0x20]
lea rax, [r14 + 8]
xorps xmm0, xmm0
mov qword [r14], rax
movups xmmword [rax], xmm0
nop
movabs rdx, 0xffffffff382ef42f
add rdx, 0x33b69c65
add rdx, 0x7fffffff
add rdx, 0x141a6f6c
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
nop dword [rax]
inc rdx
cmp word [rsi + rdx*2], bx
jne 0x1400f92d8
mov rcx, r14
mov qword [r14 + 0x38], rdx
call fcn.140017924
cmp qword [r14 + 0x38], rbx
jbe 0x1400f9324
sub rsi, rax
nop
movzx ecx, di
lea rax, [rax + 2]
and cx, r15w
ror edi, 8
xor cx, word [rsi + rax - 2]
inc rbx
mov word [rax - 2], cx
cmp rbx, qword [r14 + 0x38]
jb 0x1400f9300
mov rcx, qword [rsp + 0x20]
lea rax, [rsp + 0x28]
cmp rcx, rax
jne 0x1400f9356
lea rdi, [rsp + 0x28]
xor eax, eax
mov ecx, 0xab2fb03
xor ecx, 0x3ba5650b
sub ecx, 0x31179dd8
rep stosb byte [rdi], al
jmp 0x1400f935b
call fcn.1400999d0
lea r11, [rsp + 0x60]
mov rax, r14
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140106900
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
nop
add rsp, 0x662aea8e
sub rsp, 0x662aeaae
mov r8, qword [rcx + 0x648]
xor esi, esi
mov rbx, rcx
test r8, r8
je 0x14010693b
mov rdi, qword [rcx + 0x640]
jmp 0x140106942
mov rdi, rsi
nop dword [rax]
test r8, r8
je 0x14010695b
mov rax, qword [rbx + 0x640]
lea rcx, [rax + r8*8]
jmp 0x14010695e
mov rcx, rsi
cmp rdi, rcx
je 0x140106b88
mov rax, qword [rdi]
cmp qword [rax + 0x28], rdx
je 0x14010697d
sub rdi, 0xfffffffffffffff8
jmp 0x140106942
test r8, r8
je 0x140106a3b
cmp rdi, qword [rbx + 0x640]
jb 0x140106a3b
mov rax, qword [rbx + 0x640]
lea rcx, [rax + r8*8]
cmp rdi, rcx
jae 0x140106a3b
mov rdx, rdi
nop word [rax + rax]
mov rcx, qword [rbx + 0x648]
test rcx, rcx
je 0x1401069d4
mov rax, qword [rbx + 0x640]
lea rax, [rax + rcx*8]
jmp 0x1401069d7
mov rax, rsi
sub rax, 8
cmp rdx, rax
jae 0x1401069f4
mov rax, qword [rdx + 8]
mov qword [rdx], rax
sub rdx, 0xfffffffffffffff8
jmp 0x1401069b4
test rcx, rcx
je 0x140106a3b
lea rax, [rcx - 1]
mov qword [rbx + 0x648], rax
test rax, rax
jne 0x140106a3b
mov rcx, qword [rbx + 0x640]
test rcx, rcx
je 0x140106a2d
call fcn.1400999d0
mov qword [rbx + 0x640], rsi
mov qword [rbx + 0x650], rsi
mov qword [rbx + 0x648], rsi
mov rcx, qword [rdi]
test rcx, rcx
je 0x140106a63
mov rax, qword [rcx]
mov edx, 0x7b7af6a3
add edx, 0x22df71d
sub edx, 0x4d0de961
sub edx, 0x309b045e
call qword [rax]
cmp qword [rbx + 0x648], rsi
je 0x140106b88
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400f0f70
mov rcx, qword [rsp + 0x30]
mov r10d, 0x6b9c6440
xor r10d, 0x12e8ea6c
sub r10d, 0x4817807e
sub r10d, 0x315d0d0e
mov r8d, dword [rsp + 0x34]
mov eax, ecx
mov r9, qword [rbx + 0x648]
sub eax, r8d
cdq
idiv dword [rbx + 0x648]
cmp eax, r10d
cmovl r10d, eax
test r9, r9
je 0x140106b40
mov rdx, qword [rbx + 0x640]
lea r11, [rdx + r9*8]
cmp rdx, r11
je 0x140106b40
mov r9d, r10d
xor r9d, 0x28922e6f
xor r8d, 0x28922e6f
nop dword [rax]
mov rcx, qword [rdx]
mov eax, esi
xor eax, 0x28922e6f
add esi, r10d
nop
sub rdx, 0x647ffb4c
add rdx, 0x647ffb54
mov dword [rcx + 0x30], eax
mov dword [rcx + 0x34], 0x4763af30
sub dword [rcx + 0x34], 0x3ea74868
add dword [rcx + 0x34], 0x1fd5c7a7
mov dword [rcx + 0x38], r9d
mov dword [rcx + 0x3c], r8d
cmp rdx, r11
jne 0x140106af1
mov rcx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
mov rax, qword [rbx + 0x660]
test rax, rax
je 0x140106b80
sub ecx, r8d
mov dword [rax + 0x14], 0x45627c80
add dword [rax + 0x14], 0x2002a8c3
sub dword [rax + 0x14], 0x3cd2f6d4
xor ecx, 0x28922e6f
xor r8d, 0x28922e6f
mov dword [rax + 0x10], ecx
mov dword [rax + 0x18], r8d
mov dword [rax + 0x1c], r8d
mov rcx, rbx
call fcn.1400f06b0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
sub rsp, 0xffffffffffffffe0
pop rdi
ret
Function at 0x140106ba0
Capabilities:
Encode data using xor

Disassembly:
push rbx
add rsp, 0xffffffffffffffe0
mov rax, qword [rcx]
mov rbx, rcx
call qword [rax + 0x78]
mov rdx, qword [rbx + 0x648]
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.140102ea0
lea rcx, [rbx + 0x640]
lea rdx, [rsp + 0x30]
call fcn.1401067d0
mov rcx, rbx
nop
add rsp, 0x3b24e645
sub rsp, 0x3b24e625
pop rbx
jmp 0x140106ba0
push rbx
nop
add rsp, 0x49b454
sub rsp, 0x49b474
cmp qword [rcx + 0x648], 0
mov rbx, rcx
je 0x140106ce4
lea rdx, [rsp + 0x30]
call fcn.1400f0f70
mov r8, qword [rsp + 0x30]
mov r11d, 0x6f9b8ee9
add r11d, 0x267de62
sub r11d, 0x86c4568
sub r11d, 0x69972743
mov r9d, dword [rsp + 0x34]
mov eax, r8d
sub eax, r9d
cdq
idiv dword [rbx + 0x648]
mov rdx, qword [rbx + 0x648]
cmp eax, r11d
cmovl r11d, eax
xor r10d, r10d
test rdx, rdx
je 0x140106c9a
mov rax, qword [rbx + 0x640]
mov qword [rsp + 0x38], rdi
lea rdi, [rax + rdx*8]
cmp rax, rdi
je 0x140106c95
mov r8d, r11d
xor r8d, 0x28922e6f
xor r9d, 0x28922e6f
nop word [rax + rax]
mov rdx, qword [rax]
mov ecx, r10d
xor ecx, 0x28922e6f
add r10d, r11d
sub rax, 0xfffffffffffffff8
mov dword [rdx + 0x30], ecx
mov dword [rdx + 0x34], 0x1543db39
sub dword [rdx + 0x34], 0x8694972
add dword [rdx + 0x34], 0x4fcc5623
sub dword [rdx + 0x34], 0x3414b97b
mov dword [rdx + 0x38], r8d
mov dword [rdx + 0x3c], r9d
cmp rax, rdi
jne 0x140106c48
mov r8, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x34]
mov rdi, qword [rsp + 0x38]
mov rax, qword [rbx + 0x660]
test rax, rax
je 0x140106cdc
sub r8d, r9d
mov dword [rax + 0x14], 0x63c342cc
sub dword [rax + 0x14], 0x105e8f86
sub dword [rax + 0x14], 0x2ad284d7
xor r8d, 0x28922e6f
xor r9d, 0x28922e6f
mov dword [rax + 0x10], r8d
mov dword [rax + 0x18], r9d
mov dword [rax + 0x1c], r9d
mov rcx, rbx
call fcn.1400f06b0
sub rsp, 0xffffffffffffffe0
pop rbx
ret
Function at 0x14011a5b0
Capabilities:
Encode data using xor

Disassembly:
xchg rbx, rcx
mov qword [rsp + 0x10], rcx
xchg rcx, rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp - 0x10], ebx
xchg r15, rdi
mov qword [rsp + 0x20], r15
xchg rdi, r15
nop
mov qword [rsp - 8], rbp
sub rsp, 8
xchg rbp, r11
mov r11, rsp
xchg r11, rbp
add rsp, 0xffffffffffffff80
xor esi, esi
mov dword [rsp - 0x38], 0x21b89d95
mov dword [rbp - 0x50], 0x4f1e425
add dword [rbp - 0x50], 0x5808dfaf
sub dword [rbp - 0x50], 0x2d720a56
xor dword [rbp - 0x50], 0x6f7145ff
sub dword [rbp - 0x50], 0x40f9fb9e
mov dword [rbp - 0x4c], 0x6f3d0425
sub dword [rbp - 0x4c], 0x2364f5c6
xor dword [rbp - 0x4c], 0x757aa49
sub dword [rbp - 0x4c], 0x29655342
xor dword [rbp - 0x4c], 0x23475034
mov dword [rbp - 0x48], 0x2fc7e594
xor dword [rbp - 0x48], 0x3ca61daa
add dword [rbp - 0x48], 0x489bed9
xor dword [rbp - 0x48], 0x17e1b7e1
mov dword [rbp - 0x44], 0x55fb5acc
sub dword [rbp - 0x44], 0x476e8af2
xor dword [rbp - 0x44], 0x28bb3bd9
sub dword [rbp - 0x44], 0x25d5f304
xchg rsi, rsp
mov qword [rbp + 0x10], rsp
xchg rsi, rsp
lea ebx, [rsi + 1]
mov dword [rsp - 0x2c], 0x4546bb79
xchg rdx, rax
mov rdx, qword [rbp + 0x10]
xchg rdx, rax
xchg r13, rcx
mov r13, qword [rbp + 0x10]
xchg rcx, r13
xchg r8, rax
mov r8, qword [rbp + 0x10]
xchg r8, rax
and cl, 3
mov dword [rsp - 0x30], esp
shl cl, 2
shl cl, 1
movzx edx, word [rbp + rax*2 - 0x50]
mov eax, 0x56595300
xor eax, 0x770dc315
add eax, 0x16fe0db0
xor eax, 0x56d133b9
sub eax, 0x3fd45bc9
shr eax, cl
movzx ecx, al
xchg r10, r10
xchg rdi, rax
mov rdi, qword [rbp + 0x10]
xchg rdi, rax
xor cx, dx
mov word [rbp + rax*2 - 0x20], cx
mov rax, qword [rbp + 0x10]
xchg rdx, rdx
add rax, rbx
xchg r15, rax
mov qword [rbp + 0x10], r15
xchg r15, rax
xchg r11, rax
mov r11, qword [rbp + 0x10]
xchg r11, rax
cmp rax, 8
xchg r11, r11
jb 0x14011a68b
lea rax, [rbp - 0x20]
mov word [rbp - 0x10], si
xorps xmm0, xmm0
mov dword [rsp - 0x3c], 0x615a121d
xchg r9, rax
mov qword [rbp - 0x38], r9
xchg r9, rax
lea r9, [rbp - 0x30]
mov dword [rbp - 0x40], 0x2a39194f
xor dword [rbp - 0x40], 0x19d4695f
sub dword [rbp - 0x40], 0x145846d
sub dword [rbp - 0x40], 0x3295eb93
lea r8, [rbp - 0x40]
mov dword [rsp + 0x20], esi
mov dword [rsp - 0x44], edi
xor edx, edx
xor ecx, ecx
xchg rbp, rdi
movups xmmword [rdi - 0x30], xmm0
xchg rdi, rbp
call fcn.140135530
xchg rdi, rax
mov rax, rdi
xchg rdi, rax
test rax, rax
xchg r11, r11
je 0x14011a7a3
mov rcx, rax
call fcn.140110dd0
test al, al
mov dword [rsp - 0x3c], ecx
je 0x14011a7a3
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14010fc34
mov dword [rsp - 0x18], 0x73cdba26
test al, al
jne 0x14011a7ae
mov bl, sil
mov dword [rsp - 0x28], 0x37fee4e5
xor eax, eax
lea r11, [rsp + 0x80]
mov rsi, qword [r11 + 0x20]
lea rdi, [rbp - 0x20]
mov dword [rsp - 0x44], 0x1d6833f0
lea ecx, [rax + 8]
rep stosb byte [rdi], al
mov rdi, qword [r11 + 0x28]
mov dword [rsp - 0x30], esp
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
mov r13, r13
pop rbp
ret
Function at 0x140135530
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140143ba4]
cmp qword [0x140143bb8], 0
mov dword [rsp - 0x28], 0x500b7bd7
jne 0x14008e400
syscall
ret
jmp 0x14008ef2b
Function at 0x140137bac
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xchg rsi, r13
mov qword [rsp + 0x10], r13
xchg rsi, r13
mov qword [rsp + 0x18], rdi
nop
mov qword [rsp - 8], rbp
sub rsp, 8
nop
push 0x68229dd0
mov qword [rsp], r12
push r14
xchg rbx, rbx
mov rbp, rsp
add rsp, 0xffffffffffffff90
xchg rsp, r8
mov rdi, rsp
xchg r8, rsp
xchg r14, rdx
mov rdx, r14
xchg rdx, r14
mov rsi, rcx
mov dword [rsp - 0x40], 0x517f5b3d
movabs r12, 0x6dfa0d905026a861
sub r12, 0x2744740d
add r12, 0x4347425
sub r12, 0x7a800d7
sub r12, 0x6d0a79f
cmp r9d, 0x60001
jne 0x140137dc6
mov dword [rbp - 0x40], 0x1379ceb2
xor dword [rbp - 0x40], 0x4ec1e9aa
xor dword [rbp - 0x40], 0x32d44247
sub dword [rbp - 0x40], 0x2b8a7c76
xor edx, edx
mov r12, r12
mov dword [rbp - 0x3c], 0x622d4a5d
sub dword [rbp - 0x3c], 0x482e6f18
sub dword [rbp - 0x3c], 0x10a10dbe
xor dword [rbp - 0x3c], 0x297b125b
add dword [rbp - 0x3c], 0x9f2b2daa
mov dword [rbp - 0x38], 0x74b70f21
sub dword [rbp - 0x38], 0x1e75be2b
xor dword [rbp - 0x38], 0x208d61c9
xor dword [rbp - 0x38], 0x4ee4f1d1
add dword [rbp - 0x38], 0x5201d7cf
mov ecx, edx
mov eax, 0x13c1a6f3
add eax, 0x48583238
sub eax, 0x47a2671d
add eax, 0x53e7e39a
rol eax, cl
mov dword [rsp - 0x40], 0x7dbaca66
xor al, byte [rbp + rdx - 0x40]
mov byte [rbp + rdx - 0x34], al
inc rdx
mov dword [rsp - 0x10], 0x757c0bb8
cmp rdx, 0xc
jb 0x140137c98
mov r9d, 0x4c7c99e4
add r9d, 0x1536820e
sub r9d, 0x30878e63
sub r9d, 0x312b7d90
mov qword [rsp + 0x20], 0x5fc6ef00
xor qword [rsp + 0x20], 0x69da54f
sub qword [rsp + 0x20], 0x328a770
sub qword [rsp + 0x20], 0x20efe7c8
xor qword [rsp + 0x20], 0x3542bb1b
lea r8, [rbp - 0x34]
xchg r8, r8
xchg rdx, rbp
mov rbp, rdi
xchg rdx, rbp
mov rcx, r14
call fcn.140135164
xchg r8, r8
xchg rbx, rax
mov rax, rbx
xchg rbx, rax
lea rdi, [rbp - 0x34]
xchg r14, r14
xor eax, eax
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
test rbx, rbx
mov dword [rsp - 0x14], esp
je 0x140137e11
lea rdx, [rbp - 0x28]
lea rcx, [rbx + 0xc]
mov dword [rsp - 0x38], 0x4ccefb2
call fcn.140090828
test dword [rbp - 7], 0x1000
jne 0x140137e11
cmp byte [rbp - 0x1d], 0xe8
xchg rsp, rsp
jne 0x140137e11
lea rdx, [rbx + 0xc]
xchg r14, rbx
mov rcx, rbx
xchg rbx, r14
call fcn.140085f90
movzx edx, byte [rbp - 0x28]
add edx, dword [rbp - 0x13]
mov dword [rsp - 0x30], 0x45efc0e8
add edx, eax
mov rax, qword [rsi + 8]
xor rax, r12
xchg r14, r14
add rdx, rax
xor rdx, r12
xchg rcx, rdx
mov qword [rsi + 0x20], rcx
xchg rdx, rcx
cmp qword [rsi + 0x20], r12
xchg rbp, rbp
setne al
lea r11, [rsp + 0x70]
xchg rbx, r13
mov r13, qword [r11 + 0x20]
xchg rbx, r13
xchg rsi, r10
mov r10, qword [r11 + 0x28]
xchg rsi, r10
xchg r9, rdi
mov r9, qword [r11 + 0x30]
xchg r9, rdi
xchg r11, r15
mov rsp, r15
xchg r11, r15
pop r14
mov rdx, rdx
nop
add rsp, 8
mov r12, qword [rsp - 8]
pop rbp
mov dword [rsp - 0x2c], edi
ret
xor al, al
jmp 0x140137dd0
Function at 0x661819a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.6618dc60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.6618dc60
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x66181a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x66287104]
mov r12, rcx
test ebx, ebx
jle 0x66181b40
mov rax, qword [0x66287108]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x66181a5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x66181ae3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x66181a40
mov rcx, r12
call fcn.661821a0
mov rsi, rax
test rax, rax
je 0x66181b62
mov rax, qword [0x66287108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.661822d0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x66287108]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x66181b47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x66181adc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x66181af0
add dword [0x66287104], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x66287108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x66181adc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.661819a0
nop dword [rax]
xor ebx, ebx
jmp 0x66181a67
mov rax, qword [0x66287108]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.661819a0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.661819a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x66181e10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x66287140]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x66287120]
test rbx, rbx
je 0x66181e64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x66181e5b
test r12, r12
je 0x66181e5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x66181e40
lea rcx, [0x66287140]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x661821a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x66261710]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x661821c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x661821c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x661821c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x66182215
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x6618220c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x661821c0
add rax, 0x28
cmp rax, r9
jne 0x661821f8
xor eax, eax
ret

Function at 0x66182220
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x66261710]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x66182240
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x66182248
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x66182240
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x661822d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x66261710]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x661822f0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x661822f8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x66182530
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x66287128]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x66181ea0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x66181ef3
mov dword [rax], edi
lea rcx, [0x66287140]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x66287120]
lea rcx, [0x66287140]
mov qword [0x66287120], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x66181e96
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x66182560
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x6618dfe0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x6618dff0
xor eax, eax
ret
jmp 0x66181e80

Function at 0x661825a0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x661825e0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x661825f8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x6620bec0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x6620bee7
call rbp
cmp dword [rax], 4
jne 0x6620bf04
mov rcx, rdi
call fcn.6620bce0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x6620bee0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret