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

Disassembly:
push rsi
push rdi
push rax
add qword [rdx + 0x30], 8
mov qword [rsp], rcx
mov r9, qword [rdx + 0x40]
test r9, r9
je 0x1402278df
mov r11d, 8
mov r8d, 8
sub r8, r9
cmp r8, 8
cmovb r11, r8
xor r10d, r10d
xor eax, eax
cmp r11, 4
mov ecx, ecx
cmovae r10, rcx
setae al
lea rcx, [rax*4 + 1]
shl rax, 2
cmp rcx, r11
jae 0x1402278a8
movzx esi, word [rsp + rax]
lea ecx, [rax*8]
shl rsi, cl
or r10, rsi
or rax, 2
cmp rax, r11
jae 0x1402278bd
movzx r11d, byte [rsp + rax]
shl eax, 3
mov ecx, eax
shl r11, cl
or r10, r11
lea ecx, [r9*8]
shl r10, cl
or r10, qword [rdx + 0x38]
mov qword [rdx + 0x38], r10
cmp r9, 8
jbe 0x1402278e4
add r9, 8
jmp 0x140227a16
xor r8d, r8d
jmp 0x140227938
mov r9, qword [rdx + 0x18]
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx]
add rax, rcx
rol rcx, 0xd
xor r9, r10
xor rcx, rax
rol rax, 0x20
mov r11, qword [rdx + 8]
add r11, r9
rol r9, 0x10
xor r9, r11
add rax, r9
rol r9, 0x15
xor r9, rax
add r11, rcx
rol rcx, 0x11
mov qword [rdx + 0x18], r9
xor rcx, r11
rol r11, 0x20
mov qword [rdx + 0x10], rcx
mov qword [rdx + 8], r11
xor rax, r10
mov qword [rdx], rax
mov eax, 8
sub rax, r8
mov r9d, eax
and r9d, 7
and rax, 0xfffffffffffffff8
cmp r8, rax
jae 0x1402279b2
mov rcx, qword [rdx]
mov r10, qword [rdx + 8]
mov rsi, qword [rdx + 0x18]
mov r11, qword [rdx + 0x10]
nop
add rcx, r11
rol r11, 0xd
mov rdi, qword [rsp + r8]
xor r11, rcx
rol rcx, 0x20
xor rsi, rdi
add r10, rsi
rol rsi, 0x10
xor rsi, r10
add rcx, rsi
rol rsi, 0x15
add r10, r11
rol r11, 0x11
xor r11, r10
rol r10, 0x20
xor rsi, rcx
xor rcx, rdi
add r8, 8
cmp r8, rax
jb 0x140227960
mov qword [rdx + 0x18], rsi
mov qword [rdx + 0x10], r11
mov qword [rdx + 8], r10
mov qword [rdx], rcx
cmp r9d, 3
jbe 0x1402279cf
mov r10d, dword [rsp + r8]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r9
jb 0x1402279e0
jmp 0x1402279fa
xor r10d, r10d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r9
jae 0x1402279fa
lea rcx, [rax + r8]
movzx r11d, word [rsp + rcx]
lea ecx, [rax*8]
shl r11, cl
or r10, r11
or rax, 2
cmp rax, r9
jae 0x140227a12
add r8, rax
movzx r8d, byte [rsp + r8]
shl eax, 3
mov ecx, eax
shl r8, cl
or r10, r8
mov qword [rdx + 0x38], r10
mov qword [rdx + 0x40], r9
add rsp, 8
pop rdi
pop rsi
ret
Function at 0x140249f90
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140249fd2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x140249fda
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140249feb
jmp 0x14024a002
xor r10d, r10d
jmp 0x14024a08d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14024a002
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14024a019
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14024a039
add r11, r8
jmp 0x14024a16a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14024a102
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14024a0b0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x14024a120
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14024a132
jmp 0x14024a14c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14024a14c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14024a166
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x14024a180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14026d228]
test ecx, ecx
je 0x14024a1b0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14024a1c9
mov rsi, rax
cmp qword [rax + 8], 0
je 0x14024a1c9
add rsi, 0x10
jmp 0x14024a2f7
lea rcx, [0x14026d210]
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14024a19d
mov ecx, dword [0x14026d228]
test ecx, ecx
je 0x14024a2d8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14024a2f5
mov rdi, rax
test rax, rax
jne 0x14024a25e
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x14024a21b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14024a314
mov rcx, rax
mov qword [0x14037f2d0], rax
mov r8d, 0x60
xor edx, edx
call fcn.1402699c4
test rax, rax
je 0x14024a314
mov rdi, rax
lea rax, [0x14026d210]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14026d228]
test ecx, ecx
je 0x14024a301
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
lea rsi, [rdi + 0x10]
mov rax, qword [rdi + 0x18]
cmp qword [rdi + 8], 0
mov rcx, qword [rdi + 0x20]
mov qword [rdi + 8], 1
movups xmm0, xmmword [0x140342e20]
movups xmmword [rdi + 0x30], xmm0
movups xmm0, xmmword [0x140342e30]
movups xmmword [rdi + 0x40], xmm0
movups xmm0, xmmword [0x140342e40]
movups xmmword [rdi + 0x50], xmm0
movups xmm0, xmmword [0x140342e00]
movups xmmword [rdi + 0x10], xmm0
movups xmm0, xmmword [0x140342e10]
movups xmmword [rdi + 0x20], xmm0
je 0x14024a2f7
cmp rax, 2
je 0x14024a2f7
lock dec qword [rcx]
sete dl
test rax, rax
je 0x14024a2cd
test dl, dl
je 0x14024a2f7
call fcn.140247ae0
jmp 0x14024a2f7
test dl, dl
je 0x14024a2f7
call fcn.140247aa0
jmp 0x14024a2f7
lea rcx, [0x14026d210]
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14024a1e8
xor esi, esi
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14026d210]
call fcn.1401f9570
mov ecx, eax
jmp 0x14024a256
mov ecx, 8
mov edx, 0x60
call fcn.140054b50
int3
Function at 0x14024dda0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, r8
mov qword [rsp + 0x20], rcx
mov rbx, qword [rdx + 0x10]
mov r12, qword [rdx + 0x18]
cmp r12, 0xffffffffffffffff
je 0x14024df26
mov r15, r9
mov rax, qword [rsp + 0xb0]
cmp rax, 0x7fffffff
mov r13d, 0x7fffffff
cmovb r13, rax
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x40], rax
lea rdi, [rsp + 0x28]
mov qword [rsp + 0x38], r13
jmp 0x14024de0d
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.140013140
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
mov r9b, 1
call fcn.14024d5c0
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x14024df42
mov r14, qword [rsp + 0x28]
cmp al, 2
je 0x14024df59
movzx edi, byte [rsp + 0x30]
mov rcx, r12
mov rdx, r15
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x14024df6b
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.1400c2420
cmp al, 0xd
jne 0x14024dec9
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14024dec9
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14024dfa0
mov r13, r12
mov r12, r15
mov r15, rsi
add rcx, 0x10
mov r8, qword [rax + 0x10]
movzx r9d, byte [rax + 0x18]
call fcn.140117620
mov rsi, rax
test rax, rax
je 0x14024debb
mov rcx, rbp
call fcn.1401071d0
mov rbp, rsi
mov rsi, r15
mov r15, r12
mov r12, r13
mov r13, qword [rsp + 0x38]
mov rcx, rbp
call fcn.14024afb0
cmp al, 0xd
jne 0x14024df7f
mov qword [rsp + 0x28], rbp
and r14d, 0x23
mov rax, qword [rbx + 0x90]
mov rcx, rdi
shl rcx, 0x10
xor r14, 0x2f
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x14024de00
mov edx, eax
and edx, r14d
or rdx, rcx
lock cmpxchg qword [rbx + 0x90], rdx
jne 0x14024df00
jmp 0x14024de00
lea rcx, [rsp + 0x28]
mov rdx, rbx
mov r8, rsi
mov r9b, 1
call fcn.14024d5c0
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x14024df50
mov rax, qword [rsp + 0x20]
mov qword [rax], 2
jmp 0x14024df8f
cmp al, 2
jne 0x14024dfa2
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x20]
mov qword [rax], 1
mov qword [rax + 8], r14
jmp 0x14024df8f
cdqe
mov rcx, qword [rsp + 0x20]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x14024df8f
mov rax, qword [rsp + 0x20]
mov qword [rax], 1
mov qword [rax + 8], rbp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.38.0_src_io_poll_evented.rs
mov edx, 0x2b
call fcn.1400a7990
mov rsi, rax
mov rcx, rbp
call fcn.1401071d0
mov rcx, rsi
call fcn.140269f10
call fcn.1400ae6d0
int3
Function at 0x14024dfe0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x68], r9
mov r15, r8
mov qword [rsp + 0x50], rcx
mov rbx, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x14024e198
mov rax, qword [rsp + 0xf0]
mov r13d, 0xffffffff
cmp rax, r13
cmovb r13, rax
mov rbp, qword [rdx + 0x20]
xorps xmm6, xmm6
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov r8, r15
mov r9b, 1
call fcn.14024d5c0
movzx eax, byte [rsp + 0x49]
cmp al, 3
je 0x14024e1b4
mov r14, qword [rsp + 0x40]
cmp al, 2
je 0x14024e1cb
movzx edi, byte [rsp + 0x48]
mov dword [rsp + 0x5c], 0
movups xmmword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8d, r13d
lea r9, [rsp + 0x5c]
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
jne 0x14024e1dd
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.1400c2420
cmp al, 0xd
jne 0x14024e120
test rbp, rbp
je 0x14024e120
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
lock inc qword [rdx]
jle 0x14024e22a
add rcx, 0x10
mov r8, qword [rbp + 0x10]
movzx r9d, byte [rbp + 0x18]
call fcn.140117620
mov r12, rax
test rax, rax
je 0x14024e120
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], 1
mov rcx, rsi
call fcn.1401071d0
mov rsi, r12
mov rcx, rsi
call fcn.14024afb0
cmp al, 0xd
je 0x14024e13e
jmp 0x14024e201
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], rsi
mov rcx, rsi
call fcn.14024afb0
cmp al, 0xd
jne 0x14024e201
and r14d, 0x23
mov rax, qword [rbx + 0x90]
mov rcx, rdi
shl rcx, 0x10
xor r14, 0x2f
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x14024e17d
mov edx, eax
and edx, r14d
or rdx, rcx
lock cmpxchg qword [rbx + 0x90], rdx
jne 0x14024e160
cmp qword [rsp + 0x40], 0
je 0x14024e040
lea rcx, [rsp + 0x48]
call fcn.140013140
jmp 0x14024e040
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov r8, r15
mov r9b, 1
call fcn.14024d5c0
movzx eax, byte [rsp + 0x49]
cmp al, 3
jne 0x14024e1c2
mov rax, qword [rsp + 0x50]
mov qword [rax], 2
jmp 0x14024e211
cmp al, 2
jne 0x14024e22c
mov r14, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov qword [rax], 1
mov qword [rax + 8], r14
jmp 0x14024e211
mov eax, dword [rsp + 0x5c]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x14024e211
mov rax, qword [rsp + 0x50]
mov qword [rax], 1
mov qword [rax + 8], rsi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.p4_
mov edx, 0x2b
call fcn.1400a7990
mov rdi, rax
mov rcx, rsi
call fcn.1401071d0
mov rcx, rdi
call fcn.140269f10
call fcn.1400ae6d0
int3
Function at 0x14024e260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14026d248]
test ecx, ecx
je 0x14024e28f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14024e2a8
mov rsi, rax
cmp qword [rax + 8], 0
je 0x14024e2a8
add rsi, 8
jmp 0x14024e3cf
lea rcx, [0x14026d230]
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14024e27c
mov ecx, dword [0x14026d248]
test ecx, ecx
je 0x14024e3b0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14024e3cd
mov rsi, rax
test rax, rax
jne 0x14024e33d
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x14024e2fa
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14024e3fa
mov rcx, rax
mov qword [0x14037f2d0], rax
mov r8d, 0x10
xor edx, edx
call fcn.1402699c4
test rax, rax
je 0x14024e3fa
mov rsi, rax
lea rax, [0x14026d230]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14026d248]
test ecx, ecx
je 0x14024e3d8
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x14024e368
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14024e3eb
mov rcx, rax
mov qword [0x14037f2d0], rax
mov r8d, 0x28
xor edx, edx
call fcn.1402699c4
test rax, rax
je 0x14024e3eb
add rsi, 8
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x20], 0
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x14024e3cf
lock dec qword [rcx]
jne 0x14024e3cf
call fcn.140109aa0
jmp 0x14024e3cf
lea rcx, [0x14026d230]
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14024e2c7
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14026d230]
call fcn.1401f9570
mov ecx, eax
jmp 0x14024e335
mov ecx, 8
mov edx, 0x28
call fcn.140054b50
mov ecx, 8
mov edx, 0x10
call fcn.140054b50
int3
Function at 0x140259630
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x140259650
test al, 1
je 0x14025970a
test al, 2
jne 0x140259722
test al, 8
jne 0x14025968b
lea rcx, [rsi + 0x20]
mov qword [rsp + 0x58], 4
lea rdx, [rsp + 0x58]
call fcn.140259570
jmp 0x1402596a3
test al, 0x10
je 0x1402596a3
mov rax, qword [rsi + 0x58]
test rax, rax
je 0x1402597b8
mov rcx, qword [rsi + 0x60]
call qword [rax + 0x10]
mov qword [rsp + 0x28], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rsi], rax
shr rax, 6
cmp rax, qword [rsp + 0x28]
jb 0x14025973a
jne 0x1402596fc
lea rcx, [rsi + 0x28]
call fcn.140256d30
mov rax, qword [rsi + 0x58]
test rax, rax
je 0x1402596de
mov rcx, qword [rsi + 0x60]
call qword [rax + 0x18]
mov r8, qword [rsi - 8]
mov rcx, qword [0x14037f2d0]
xor edx, edx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1402699cc
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140344520]
mov edx, 0x23
call fcn.1400a7990
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140344560]
mov edx, 0x25
call fcn.1400a7990
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [fcn.1400a6d70]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
lea rax, str.current:___sub:_xE4_
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 2
lea rdx, [0x1403445a8]
lea rcx, [rsp + 0x88]
call fcn.1400a6c30
lea rax, str.HA4_
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
lea rax, [0x140347980]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
lea rdx, str.__4_
lea rcx, [rsp + 0x58]
call fcn.1400a6c30
ud2
Function at 0x14026b370
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.14026c130
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14026c130
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14026b3e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14037f3c4]
mov rbx, rcx
test esi, esi
jle 0x14026b510
mov rax, qword [0x14037f3c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14026b42b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14026b4b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14026b410
mov rcx, rbx
call fcn.14026be50
mov rdi, rax
test rax, rax
je 0x14026b532
mov rax, qword [0x14037f3c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14026bf90
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14037f3c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14026b517
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14026b4ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14026b4c0
add dword [0x14037f3c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14037f3c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14026b4ae
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14026b370
nop dword [rax]
xor esi, esi
jmp 0x14026b438
mov rax, qword [0x14037f3c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14026b370
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14026b370
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14026bac0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14037f420]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14037f400]
test rbx, rbx
je 0x14026bb1c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14026bb13
test eax, eax
jne 0x14026bb13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14026baf8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14026be50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14034c870]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14026be70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14026be78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14026be70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14026becd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14026bec4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14026be70
add rax, 0x28
cmp rax, r9
jne 0x14026beb0
xor eax, eax
ret

Function at 0x14026bed0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14034c870]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14026beef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14026bef8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14026beef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14026bf90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14034c870]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14026bfaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14026bfb8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180006450
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
sub rsp, 0x70
call fcn.180003060
mov qword [rsp + 0x68], rax
test rax, rax
je 0x180006586
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [0x1800093a0]
mov qword [rsp + 0x60], rax
lea rax, str.Gate_address:
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 2
mov qword [rsp + 0x40], 0
lea rsi, [rsp + 0x58]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x20]
call fcn.1800f05c0
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 0x40
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [0x1801d9198], rax
test rax, rax
je 0x1800065ae
lea rax, [0x1801d9198]
mov qword [rsp + 0x58], rax
lea rax, [0x1800093a0]
mov qword [rsp + 0x60], rax
lea rax, str.Allocated_memory_for_jump:
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 2
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x20]
call fcn.1800f05c0
mov rax, qword [rsp + 0x68]
mov rcx, qword [0x1801d9198]
movzx edx, byte [rax + 8]
mov byte [rcx + 8], dl
mov rax, qword [rax]
mov qword [rcx], rax
lea rax, str.Copied_gate_memory_to_allocated_jump_memory._n
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x30], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rcx, [rsp + 0x20]
call fcn.1800f05c0
mov rax, qword [0x1801d9198]
add rsp, 0x70
pop rsi
ret
lea rax, str.Failed_to_retrieve_the_gate_address._n
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x30], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
jmp 0x1800065fa
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x58], rax
lea rax, [0x1800e82d0]
mov qword [rsp + 0x60], rax
lea rax, str.Failed_to_allocate_executable_memory._Error_code:
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 2
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x20]
call fcn.1800f06d0
xor eax, eax
add rsp, 0x70
pop rsi
ret