joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c114
Capabilities:
Create raw socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400153a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
or rdi, 0xffffffffffffffff
mov r12, rdx
xor r13d, r13d
lea ecx, [rdi + 3]
lea r14d, [rdi + 2]
mov qword [r11 - 0x40], rcx
mov edx, r14d
lea r8d, [rdi + 7]
call qword [sym.imp.WS2_32.dll_socket]
nop dword [rax + rax]
lea r15d, [rdi + 0x11]
mov rsi, rax
cmp rax, rdi
je 0x14000c1a4
mov r8d, r15d
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
nop dword [rax + rax]
mov ebx, eax
cmp eax, edi
je 0x14000c195
mov rdi, rsi
jmp 0x14000c1b2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
jne 0x14000c20b
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
nop dword [rax + rax]
cmp eax, 0xffffffff
movzx ebp, r13w
mov ebx, eax
cmovne bp, word [rsp + 0x2a]
test eax, eax
jne 0x14000c1fa
mov rcx, r15
call fcn.140001148
mov rsi, rax
test rax, rax
jne 0x14000c244
lea ebx, [rax + 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
test ebx, ebx
jle 0x14000c216
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001820
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rax], rdi
mov word [rax + 8], bp
movsxd rdi, dword [0x140015b68]
mov ecx, dword [0x140015b6c]
lea r15d, [rdi + 1]
test r15d, r15d
jle 0x14000c2d0
cmp edi, ecx
jne 0x14000c2b6
cmp edi, 0x3fffffff
jg 0x14000c2d0
movabs rdx, 0xfffffffffffffff
cmp rdi, rdx
ja 0x14000c2d0
test ecx, ecx
je 0x14000c284
lea r14d, [rdi + rdi]
mov rcx, qword [0x140015b60]
movsxd rdx, r14d
shl rdx, 3
call qword [sym.imp.msvcrt.dll_realloc]
nop dword [rax + rax]
mov rcx, rax
test rax, rax
je 0x14000c2d0
mov dword [0x140015b6c], r14d
mov qword [0x140015b60], rax
jmp 0x14000c2bd
mov rcx, qword [0x140015b60]
lea rdx, [rcx + rdi*8]
mov dword [0x140015b68], r15d
test rdx, rdx
je 0x14000c2d0
mov qword [rdx], rsi
mov word [r12], bp
jmp 0x14000c216
Function at 0x14000cc10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x40
and dword [rax + 0x18], 0
mov r14d, edx
xor edi, edi
mov rbx, rcx
mov ebp, 0xff
mov eax, 0x3ff
shr eax, 1
lea edi, [rdi*2 + 2]
jne 0x14000cc3d
shr edi, 1
xor esi, esi
mov edx, 4
lea rcx, [rsp + 0x70]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
nop dword [rax + rax]
cmp al, 1
jne 0x14000cc80
mov eax, edi
and eax, dword [rsp + 0x70]
mov dword [rsp + 0x70], eax
cmp eax, 0x3ff
jbe 0x14000cc7e
add ebp, 0xffffffff
je 0x14000cc80
jmp 0x14000cc4c
mov esi, eax
test r14d, r14d
je 0x14000cca7
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14000ccca
mov rax, qword [rcx]
movabs r10, 0xcb809fcf18d9c970
mov rax, qword [rax + 0x18]
call qword [0x140010b90]
jmp 0x14000ccca
mov rcx, qword [rbx]
lea edi, [rsi + 0x400]
mov r8d, edi
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], rbx
call fcn.14000ed50
test eax, eax
je 0x14000ccd4
mov rcx, rbx
call fcn.14000cf68
jmp 0x14000cd0a
lock inc dword [rbx + 0x64]
mov rcx, qword [rbx + 0x10]
mov r8d, edi
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], rbx
call fcn.14000ed50
test eax, eax
je 0x14000cd0a
mov rcx, rbx
call fcn.14000cf68
test eax, eax
je 0x14000cd0a
mov rcx, rbx
call fcn.14000dc6c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000d9a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, r9
mov rbx, rcx
test edx, edx
jne 0x14000db21
test r8d, r8d
je 0x14000db21
mov rbp, qword [r9 + 0x28]
lea r14, [rcx + 0x10]
mov r15, rcx
cmp rbp, 1
lea ecx, [rdx + 2]
cmovne r15, r14
je 0x14000d9f6
xor esi, esi
mov r14, rbx
cmp rbp, 1
sete sil
inc rsi
jmp 0x14000d9fe
mov rsi, rcx
cmp dword [rbx + 0x38], ecx
je 0x14000da09
cmp rbp, rcx
jne 0x14000da45
cmp dword [rbx + 0x38], 1
jne 0x14000da45
mov eax, dword [r15 + 8]
cmp dword [r9 + 0x68], r8d
jne 0x14000da19
mov dword [r15 + 8], ecx
jmp 0x14000da45
mov dword [r15 + 8], 1
cmp eax, ecx
je 0x14000da45
lea rdx, [r9 + 0x78]
mov rcx, rbx
mov r9d, dword [r9 + 0x68]
lea r8, [rsp + 0x80]
call fcn.14000d6d4
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x14000da9e
cmp qword [r14], 0xffffffffffffffff
je 0x14000da9e
lock inc dword [rbx + 0x64]
mov r8d, dword [rsp + 0x80]
mov rdx, rdi
mov rcx, qword [r14]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rbx
call fcn.14000ee60
test eax, eax
je 0x14000daa6
mov rcx, rbx
call fcn.14000cf68
mov rcx, rbx
call fcn.14000cf68
test eax, eax
je 0x14000da91
mov rcx, rbx
call fcn.14000dc6c
mov rcx, rdi
call fcn.14000cbd4
jmp 0x14000db3d
mov rcx, rdi
call fcn.14000cbd4
cmp qword [r15], 0xffffffffffffffff
je 0x14000db29
and dword [rsp + 0x78], 0
mov r14d, 0xff
xor edi, edi
mov eax, 0x3ff
shr eax, 1
lea edi, [rdi*2 + 2]
jne 0x14000dabe
shr edi, 1
xor esi, esi
mov edx, 4
lea rcx, [rsp + 0x78]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
nop dword [rax + rax]
cmp al, 1
jne 0x14000db02
mov eax, edi
and eax, dword [rsp + 0x78]
mov dword [rsp + 0x78], eax
cmp eax, 0x3ff
jbe 0x14000db00
add r14d, 0xffffffff
je 0x14000db02
jmp 0x14000dacd
mov esi, eax
mov rcx, qword [r15]
lea r8d, [rsi + 0x400]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
call fcn.14000ed50
test eax, eax
je 0x14000db3d
jmp 0x14000db29
mov rcx, rdi
call fcn.14000cbd4
mov rcx, rbx
call fcn.14000cf68
test eax, eax
je 0x14000db3d
mov rcx, rbx
call fcn.14000dc6c
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000dc6c
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push r12
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14000dce8
lea r9, [rax + 8]
mov dword [rax + 8], 1
mov edx, 0xffff
mov dword [rax - 0x18], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
test eax, eax
je 0x14000dcc3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
test eax, eax
je 0x14000dce3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
or qword [rbx + 0x10], 0xffffffffffffffff
cmp qword [rbx], 0xffffffffffffffff
je 0x14000dd50
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x40], 1
mov r8d, 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
test eax, eax
je 0x14000dd2d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
test eax, eax
je 0x14000dd4c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
or qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret
Function at 0x14000df68
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r14, r9
mov dword [rax + 0x10], r12d
mov rsi, rcx
mov word [rax + 0x18], r12w
cmp edx, 0xc0000120
je 0x14000e134
cmp dword [rcx + 0x2c], r12d
jne 0x14000e134
mov rdi, qword [r9 + 0x10]
or rbp, 0xffffffffffffffff
test edx, edx
je 0x14000dffe
add edx, 0xffffd8ca
cmp edx, 0x3f
ja 0x14000e117
movabs rcx, 0x8000000000519001
bt rcx, rdx
jae 0x14000e117
or rbp, rbp
cmp rdi, rbp
je 0x14000dff1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14000e474
jmp 0x14000e151
lea rdx, [r9 + 0x78]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
call fcn.14000e1dc
test eax, eax
js 0x14000e100
cmp dword [rsp + 0x78], r12d
je 0x14000e100
lea r9, [rsi + 0x10]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
mov ecx, 0xa0
call fcn.140001148
mov r15, rax
test rax, rax
je 0x14000e100
lea rcx, [rax + 0x68]
mov qword [rax], rbp
mov dword [rax + 8], 1
mov qword [rax + 0x10], rbp
mov dword [rax + 0x18], 1
mov qword [rax + 0x90], r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
nop dword [rax + rax]
mov eax, dword [rsp + 0x30]
mov rdx, rdi
mov dword [r15 + 0x98], r12d
mov rcx, r15
mov qword [r15], rbp
mov qword [r15 + 0x10], rbp
mov dword [r15 + 0x3c], r12d
mov word [r15 + 0x44], r12w
mov word [r15 + 0x20], r12w
mov dword [r15 + 0x64], r12d
mov qword [r15 + 0x30], r12
movzx r9d, word [rsp + 0x80]
mov r8d, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14000d1ac
test eax, eax
js 0x14000e114
xor r8d, r8d
lea rcx, [0x140015b70]
mov rdx, r15
call fcn.14000ddd0
test eax, eax
je 0x14000e114
inc dword [0x140015ba0]
jmp 0x14000e114
cmp rdi, rbp
je 0x14000e114
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
mov rdi, rbp
mov rcx, qword [rsi + 0x10]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call fcn.14000e758
test eax, eax
je 0x14000e159
jmp 0x14000dfdd
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14000e149
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14000e17c
mov rcx, r14
call fcn.14000cbd4
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14000e89c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r15
sub rsp, 0xd0
mov rax, qword [0x1400153a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov esi, ecx
mov rdi, r8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_ntohs]
nop dword [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x78]
call sub.msvcrt.dll_memset
mov edx, 1
xor r15d, r15d
mov dword [rsp + 0x28], edx
xor r9d, r9d
mov dword [rsp + 0x20], r15d
lea r12d, [rdx + 1]
mov ecx, r12d
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_WSASocketW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000e92e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14000e9f0
xor r8d, r8d
lea rdx, [0x14000eef0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_BindIoCompletionCallback]
nop dword [rax + rax]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
cmp esi, 0xffffffff
je 0x14000e9f4
xor eax, eax
mov dword [rsp + 0x40], r12d
mov r8d, 0x80
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x44], esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000e9f4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000e9f9
mov qword [rdi], rbx
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140001820
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r12
pop rdi
ret

Function at 0x14000ebf4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400153a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000ec60
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
jmp 0x14000ec85
test rsi, rsi
je 0x14000ec76
cmp word [rsp + 0x30], 0x17
mov eax, dword [rsp + 0x34]
cmove eax, dword [rsp + 0x38]
mov dword [rsi], eax
test rdi, rdi
je 0x14000ec83
movzx eax, word [rsp + 0x32]
mov word [rdi], ax
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001820
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000ed50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140015c30], 0
mov edi, r8d
mov rsi, rcx
je 0x14000ed78
mov eax, 0x3eb
jmp 0x14000ee48
cmp edi, 0x240
ja 0x14000ed8a
call fcn.14000cb98
mov rbx, rax
jmp 0x14000edc2
lea eax, [r8 + 0x78]
movsxd rbx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000edc2
mov dword [rax], 1
mov dword [rax + 0x68], edi
test rbx, rbx
jne 0x14000edcc
lea eax, [rbx + 8]
jmp 0x14000ee48
lea rcx, [rbx + 0x30]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea rax, [0x14000d490]
mov qword [rsp + 0x20], rcx
movups xmmword [rcx + 0x10], xmm0
and dword [rbx + 0x50], 0
lea rdx, [rbx + 0x78]
mov qword [rbx + 0x18], rax
lea r9, [0x140015a04]
mov rax, qword [rsp + 0x68]
mov r8d, edi
mov qword [rbx + 0x20], rax
mov rcx, rsi
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x10], rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14000ee44
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x3e5
je 0x14000ee44
mov rcx, rbx
call fcn.14000cbd4
jmp 0x14000ee46
xor edi, edi
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ee60
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [0x140015c30], 0
mov r10, rcx
je 0x14000ee77
mov eax, 0x3eb
jmp 0x14000eede
lea rcx, [rdx + 0x30]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea rax, [0x14000d500]
mov qword [rsp + 0x20], rcx
movups xmmword [rcx + 0x10], xmm0
mov qword [rdx + 0x18], rax
lea r9, [0x140015a04]
mov rax, qword [rsp + 0x68]
mov rcx, r10
mov qword [rdx + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x10], r10
add rdx, 0x78
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14000eedc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x14000eede
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400386f0
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword gs:[0x60]
xor r11d, r11d
mov rsi, r8
mov ebp, edx
mov rdi, qword [rax + 0x10]
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
movzx eax, word [rbx + 0x14]
lea r9, [rbx + 0x18]
movzx r10d, word [rbx + 6]
add r9, rax
test r10, r10
je 0x1400387af
mov dword [rsp + 0x78], 0x6544302e
mov byte [rsp + 0x7c], 0x76
movups xmm2, xmmword [r9]
lea rcx, [rsp + 0x78]
movups xmm0, xmmword [r9 + 0x10]
movsd xmm1, qword [r9 + 0x20]
movd edx, xmm2
movups xmmword [rsp + 0x20], xmm2
movsd qword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
test dl, dl
je 0x140038797
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x20]
sub r8, rax
movzx eax, dl
nop
movzx edx, al
cmp al, byte [rcx]
jne 0x140038797
movzx eax, byte [r8 + rcx + 1]
inc rcx
movzx edx, al
test al, al
jne 0x140038780
cmp dl, byte [rcx]
lea rdx, [rsp + 0x20]
cmovne rdx, r11
add r9, 0x28
mov r11, rdx
sub r10, 1
jne 0x140038742
mov eax, dword [r11 + 0xc]
mov rdx, rsi
mov ecx, dword [rbx + 8]
mov eax, dword [rax + rdi]
xor eax, dword [rbx + 0x68]
ror eax, cl
mov ecx, ebp
add rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp rax
Function at 0x180001f50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x1800c31c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
cmp edx, 1
jne 0x18000217f
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1800a4fb8]
lea rdx, str.CONOUT_
lea rcx, [rbp - 0x29]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1800a4fc8]
lea rdx, str.CONIN_
lea rcx, [rbp - 0x29]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rdx, str.Deadlock
lea rcx, str.SDL_app
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1800c88e8], rax
test rax, rax
jne 0x180001ff5
lea rcx, str.Failed_to_FindWindow
call fcn.1800022b0
jmp 0x18000217f
mov qword [rbp + 0x17], rax
xor r9d, r9d
mov qword [rsp + 0xf0], rbx
lea rax, [rbp + 0x37]
xor ebx, ebx
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x58], rbx
lea rdi, [0x1800c8990]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov qword [rsp + 0x48], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x40], rdi
mov edx, 1
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov dword [rsp + 0x30], 7
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
mov qword [rbp - 5], rbx
mov qword [rbp + 0xf], 2
mov qword [rbp + 0x27], 2
mov qword [rbp - 0x19], rbx
mov dword [rbp - 9], 0x1c
mov dword [rbp - 0x11], 0x3c
mov dword [rbp - 0xd], 1
mov dword [rbp + 0xb], 0x20
mov qword [rbp + 3], 1
mov qword [rbp + 0x1f], 1
mov dword [rbp + 0x3f], 0xb000
mov dword [rbp + 0x43], 0xa000
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x180002105
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x37]
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, 5
mov dword [rsp + 0x30], 7
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 2
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov rdi, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0xf0]
test eax, eax
jne 0x18000217f
mov rax, qword [0x1800c8990]
lea r9, [rbp + 0x3b]
mov edx, 1
mov r8d, 0x40
mov rcx, qword [rax]
mov qword [0x1800c88f0], rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [0x1800c88f0]
mov rax, qword [rcx + 0x40]
mov qword [0x1800c88d8], rax
mov rax, qword [rcx + 0x68]
mov qword [0x1800c88e0], rax
lea rax, [0x180007d60]
mov qword [rcx + 0x40], rax
lea rax, [0x180007ab0]
mov qword [rcx + 0x68], rax
mov rcx, qword [0x1800c8990]
mov rax, qword [rcx]
call qword [rax + select]
mov eax, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180097330
add rsp, 0xe0
pop rbp
ret
Function at 0x180006b10
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1800c31c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, edx
mov qword [rsp + 0x28], rcx
mov rbx, rcx
xor edx, edx
mov ecx, edi
xor esi, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r9d, eax
cmp edi, 1
jne 0x180006b5f
lea rdx, [0x1800a5258]
mov rcx, rbx
call fcn.180007140
jmp 0x180006d0e
cmp edi, 2
jne 0x180006b78
lea rdx, [0x1800a5260]
mov rcx, rbx
call fcn.180007140
jmp 0x180006d0e
cmp edi, 4
jne 0x180006b91
lea rdx, [0x1800a5268]
mov rcx, rbx
call fcn.180007140
jmp 0x180006d0e
cmp edi, 5
jne 0x180006baa
lea rdx, [0x1800a5270]
mov rcx, rbx
call fcn.180007140
jmp 0x180006d0e
cmp edi, 6
jne 0x180006bc3
lea rdx, [0x1800a5278]
mov rcx, rbx
call fcn.180007140
jmp 0x180006d0e
add edi, 0xffffffdf
mov qword [rsp + 0xf0], rbp
cmp edi, 0x84
ja case.0x180006bf2.41
lea rdx, [0x180000000]
movsxd rax, edi
movzx eax, byte [rdx + rax + 0x6d40]
mov ecx, dword [rdx + rax*4 + 0x6d38]
add rcx, rdx
jmp rcx
bts r9d, 8
shl r9d, 0x10
lea rdx, [rsp + 0x30]
mov ecx, r9d
mov r8d, 0x80
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov rdi, 0xffffffffffffffff
mov qword [rbx + 0x18], rsi
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], sil
jne 0x180006c30
movabs rbp, 0x7fffffffffffffff
cmp rdi, rbp
ja 0x180006d2c
cmp rdi, 0xf
ja 0x180006c77
mov r8, rdi
mov qword [rbx + 0x10], rdi
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], sil
jmp 0x180006d06
mov rax, rdi
or rax, 0xf
cmp rax, rbp
jbe 0x180006cac
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.180097470
test rax, rax
je 0x180006cd8
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x180006ce7
mov ecx, reloc.WS2_32.dll_shutdown
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
test rcx, rcx
je 0x180006ce7
cmp rcx, 0x1000
jb 0x180006cdf
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180006d32
jmp 0x180006c91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180097470
mov rsi, rax
mov r8, rdi
mov qword [rbx], rsi
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x10], rdi
mov rcx, rsi
mov qword [rbx + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rdi], 0
mov rbp, qword [rsp + 0xf0]
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180097330
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
call fcn.180002510
int3
call fcn.180002470
int3