joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d4510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18018f0a8]
mov rcx, qword [rax + 0x4de8]
mov r9, qword [rax + 0x4008]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.1800c64b0

Function at 0x1800d45f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18018f0a8]
mov rcx, qword [rax + 0x4de8]
mov r10, qword [rax + 0x4008]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1800c64b0

Function at 0x1800d7690
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x18018f0a8]
mov rdx, qword [rax + 0x4de8]
cmp ecx, 0xffffffff
jne 0x1800d76aa
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x1800d7729
mov r10d, dword [rdx]
lea r8, [0x18016eaf9]
movzx eax, word [rdx + 0x78]
lea r11, [0x1801595d0]
not r10d
mov word [rdx + 0x224], cx
mov ecx, r10d
mov byte [rdx + 0x23b], 1
mov word [rdx + 0x7a], ax
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1800d7703
cmp byte [r8], r9b
jne 0x1800d7703
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800d76f0
not ecx
xor edx, edx
jmp fcn.180079890
ret
Function at 0x1800f5460
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r10d, 0xffffffff
lea r8, [0x180156a61]
mov ecx, r10d
lea rbx, [0x1801595d0]
movaps xmm5, xmm3
mov r11, rdx
mov r9b, 0x23
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1800f54a3
cmp byte [r8], r9b
jne 0x1800f54a3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1800f5490
not ecx
call fcn.18006efa0
xor edi, edi
test rax, rax
je 0x1800f54da
cmp word [rax + 0xcc], di
jne 0x1800f5580
mov rcx, qword [0x18018f0a8]
test r11, r11
jne 0x1800f54f0
mov rax, qword [rcx + 0x4b00]
mov r11, qword [rax]
movss xmm1, dword [r11 + 0xb8]
xorps xmm3, xmm3
movss xmm0, dword [r11 + 0xc]
movaps xmm4, xmm1
addss xmm4, dword [r11 + 4]
movss xmm2, dword [r11 + 0xbc]
subss xmm0, xmm1
addss xmm2, dword [r11 + 8]
addss xmm0, dword [r11 + 0xc0]
or dword [rcx + 0x49e8], 3
mov qword [rcx + 0x4a00], rdi
mov dword [rcx + 0x49ec], 1
mov dword [rcx + 0x49f0], 1
maxss xmm3, xmm0
movaps xmm0, xmm4
unpcklps xmm0, xmm2
movsd qword [rcx + 0x49f8], xmm0
addss xmm3, xmm4
subss xmm3, xmm4
unpcklps xmm3, xmm5
movsd qword [rcx + 0x4a08], xmm3
addss xmm5, dword [r11 + 0xbc]
movss dword [r11 + 0xbc], xmm5
xorps xmm1, xmm1
mov ecx, 3
call fcn.180067de0
mov rbx, qword [0x18018f0a8]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 5
movss xmm1, dword [rbx + 0x3908]
lea rcx, [rbx + 0x4a70]
movss xmm0, dword [rbx + 0x390c]
movss dword [rsp + 0x24], xmm1
movss dword [rsp + 0x28], xmm0
call fcn.18008b480
xor edx, edx
mov qword [rbx + 0x3908], rdi
mov r8d, 0x50f
lea rcx, str.MainMenuBar
call fcn.180071cc0
mov ecx, 2
movzx ebx, al
call fcn.180067ef0
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800f82d0
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x1800f835c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1800f8330
lea r11, [0x1801595d0]
nop
cmp r9b, 0x23
jne 0x1800f8313
cmp byte [r8], r9b
jne 0x1800f8313
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800f8300
mov rcx, qword [0x18018f0a8]
not eax
cmp dword [rcx + 0x406c], eax
jne 0x1800f8347
mov dword [rcx + 0x4070], eax
cmp dword [rcx + 0x4098], eax
jne 0x1800f83b9
mov byte [rcx + 0x409c], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18018f0a8]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x4008]
movsxd rax, dword [rbx + 0x100]
mov r8, qword [rbx + 0x108]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180065ce0
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x4054], eax
jne 0x1800f83b2
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.180089fa0
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180101990
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180188040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x1801019df
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801ae3c0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180101a1d
cmp rsi, r14
jb 0x180101a15
cmp rsi, r15
jae 0x180101a15
cmp qword [rsi + 8], 0
jne 0x180101be7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180101a00
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180101ab2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180101aa9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180101aa9
cmp dword [rsp + 0x40], 0x10000
je 0x180101b2b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180101aa9
sub rbx, rbp
cmp rbx, r14
jae 0x180101a70
test rsi, rsi
jne 0x180101b90
cmp rdi, r15
ja 0x180101bcf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180101bcf
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180101bcf
cmp dword [rsp + 0x40], 0x10000
je 0x180101b61
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180101ae2
jmp 0x180101bcf
test rbx, rbx
je 0x180101aa9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180101b90
cmp rbx, r14
jae 0x180101a50
jmp 0x180101ab2
test rdi, rdi
je 0x180101bcf
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180101b90
cmp rdi, r15
jbe 0x180101ac0
jmp 0x180101bcf
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180101ba0
mov rax, qword [0x1801ae3c0]
mov qword [rsi], rax
mov qword [0x1801ae3c0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180120820
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1801025c0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180188040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1801026eb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1801026e2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1801026c4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1801026c4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1801026c4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180102682
mov rcx, qword [0x18018f0d0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1801026e2
jmp 0x1801026b7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1801026b7
mov rcx, qword [0x18018f0d0]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1801026e2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180102630
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180102743
cmp dword [rbx + 0xc], esi
jbe 0x180102743
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18010273c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180102410
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180102700
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180120820
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180102770
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180188040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1801ae3b0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1801027e3
mov eax, 0xa
jmp 0x180102876
test esi, esi
je 0x180102805
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180102828
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180102828
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180102821
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180102828
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180120820
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1801028a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1801ae3bc]
mov ebx, edi
test ecx, ecx
je 0x1801029db
mov rax, qword [0x1801ae3b0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1801028f8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1801028d0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1801029db
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1801025c0
mov r8d, dword [0x1801ae3bc]
cmp ebx, r8d
jae 0x180102968
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1801ae3b0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180102961
mov edx, esi
mov ecx, ebx
call fcn.180102770
mov edi, eax
test eax, eax
jne 0x180102968
mov r8d, dword [0x1801ae3bc]
inc ebx
cmp ebx, r8d
jb 0x180102930
cmp qword [rsp + 0x20], 0
je 0x1801029db
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1801029c7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801029b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180102990
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18018f0d0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180102ff0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18018f0c8], ebp
je 0x180103047
cmp rbx, 0x20
jae 0x180103030
xor ecx, ecx
jmp 0x180103032
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18018f0c8], ebp
jne 0x180103026
cmp qword [0x18018f0d0], r15
je 0x180103141
test rdi, rdi
jne 0x180103067
mov ecx, esi
call fcn.1801028a0
mov ebp, eax
jmp 0x180103146
mov ecx, dword [0x1801ae3bc]
mov ebx, r15d
test ecx, ecx
je 0x18010308f
mov r8, qword [0x1801ae3b0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180103099
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180103080
mov ebp, 4
jmp 0x180103146
cmp ebx, 0xffffffff
je 0x18010308f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180103138
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1801025c0
mov edx, esi
mov ecx, ebx
call fcn.180102770
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180103146
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180103122
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180103118
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x1801030f0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18018f0d0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180103146
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180103146
mov ebp, 2
xchg dword [0x18018f0c8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180107480
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ecx, ecx
mov qword [rbx + 0x28], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [0x180170300]
mov rcx, rbx
mov r9, rax
lea rdx, str.CONIN_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea rcx, [rbx + 8]
lea r8, [0x180170310]
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea rcx, [rbx + 0x10]
lea r8, [0x180170310]
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, str.Debug_Console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rbx + 0x28]
mov edx, 5
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_ShowWindow]
Function at 0x140002fb0
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1060
call fcn.14000e8c0
sub rsp, rax
mov rax, qword [0x140018040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003051
nop
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140003051
mov r9d, eax
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140008d60
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003010
mov rax, qword [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp qword [rsp + 0x38], rax
je 0x1400030ae
lea rdx, str.Sending_data_of_size:
call fcn.140007510
mov rdx, qword [rsp + 0x40]
sub rdx, qword [rsp + 0x38]
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___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x1400078b0]
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]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x1400030cb
lea rdx, str.No_data_to_send.
call fcn.140007510
lea rdx, [0x1400078b0]
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]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000310a
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003105
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003105
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000db04
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000d790
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005a30
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140018040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x50], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], rbp
lea r8d, [rbp + 7]
lea rdx, str.Unknown
call fcn.1400082f0
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
lea r8d, [rbp + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x140005b96
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x58], rdi
mov esi, ebp
cmp dword [rsp + 0x50], ebp
jbe 0x140005b88
nop
mov eax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x40]
cmp dword [rax + rcx*8 + 0x10], 0
jne 0x140005b2f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x54], ebp
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x48]
mov r8d, 5
mov edx, dword [rax + rcx*8]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationA]
test eax, eax
je 0x140005b2f
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov eax, dword [rsp + 0x54]
test eax, eax
jne 0x140005b39
test rbx, rbx
je 0x140005b2f
mov rcx, rbx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
inc esi
cmp esi, dword [rsp + 0x50]
jb 0x140005ad0
jmp 0x140005b88
lea esi, [rax - 1]
mov rax, qword [r14 + 0x18]
cmp rsi, rax
ja 0x140005b6a
mov r15, r14
cmp rax, 0xf
jbe 0x140005b51
mov r15, qword [r14]
mov qword [r14 + 0x10], rsi
mov r8, rsi
mov rdx, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
mov byte [r15 + rsi], 0
jmp 0x140005b79
mov r9, rbx
mov rdx, rsi
mov rcx, r14
call fcn.1400081b0
nop
test rbx, rbx
je 0x140005b88
mov rcx, rbx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
test rdi, rdi
je 0x140005b96
mov rcx, rdi
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000d790
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret