joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400721a0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x200], 0
mov rbx, rcx
je 0x1400721f0
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400721f0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140075480
xor ecx, ecx
mov qword [0x1400cab48], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1400cab38]
mov qword [0x1400cab50], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1400cab40]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x394], ecx
mov rcx, qword [rbx + 0x358]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x398], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [rbx + 0x84]
cmp eax, 0x34001
je 0x140072274
cmp eax, 0x34004
je 0x140072274
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14007228d
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x1400722b0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x358]
mov edx, 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400722f2
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140075480
add rsp, 0x38
ret

Function at 0x1400723a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, reloc.WS2_32.dll_recvfrom
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, sendto
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, reloc.WS2_32.dll_sendto
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400746d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x140074700
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.14006ea30
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140075820
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1400ca462]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1400ca1e8]
xor r12d, r12d
lea r15, [0x1400ca502]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x1400759d8
cmp ebx, 0x140
jb 0x14007593f
cmp ebx, 0x14e
ja 0x14007593f
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], WSAStartup
mov dword [rsp + 0x6c], WSAStartup
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], WSAStartup
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x14007594e
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1400759a1
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1400759d8
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x1400758a1
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14007c870
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140079b80
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1400c9ce0], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x140079bd5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007c870
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1400c9ce0], rax
test rax, rax
jne 0x140079c17
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140079be0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14006ea30
jmp 0x140079d34
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9ce0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1400c9ce8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9ce0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1400c9cf0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9ce0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1400c9cf8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9ce0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1400c9d00], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9ce0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1400c9d08], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9ce0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1400c9d10], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400c9ce8], 0
mov qword [0x1400c9d18], rax
je 0x140079d07
cmp qword [0x1400c9cf8], 0
je 0x140079d07
cmp qword [0x1400c9d00], 0
je 0x140079d07
cmp qword [0x1400c9d08], 0
je 0x140079d07
cmp qword [0x1400c9d10], 0
je 0x140079d07
test rax, rax
je 0x140079d07
mov eax, 1
jmp 0x140079d36
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14006ea30
mov rcx, qword [0x1400c9ce0]
test rcx, rcx
je 0x140079d34
call fcn.14007a5d0
mov qword [0x1400c9ce0], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007c870
add rsp, 0x48
ret

Function at 0x14007d798
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007d7e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007d7e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007d7e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007d7e2
cmp dword [rcx + 0x84], 0xe
jbe 0x14007d7e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007d7e4
xor al, al
add rsp, 0x28
ret
Function at 0x14007da4c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007da86
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007da8b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007dad4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400a6c70]
cmp byte [rcx + rax], 0
je 0x14007dad4
dec r8
sub rdx, 1
jne 0x14007daba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140080870
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x160
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
mov r14d, edx
mov rcx, qword [0x1400d14e0]
test rcx, rcx
jne 0x1400808c3
movzx edx, word [0x1400d13a6]
test dx, dx
je 0x1400808c3
lea rcx, [0x1400d13c0]
call fcn.140081e00
test al, al
je 0x140080939
mov rcx, qword [0x1400d14e0]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1400d14d0]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1400d1528], eax
cmp eax, 0xffffffff
jne 0x140080953
cmp qword [0x1400d14e0], 0
jne 0x140080953
movzx edx, word [0x1400d13a6]
test dx, dx
je 0x140080953
lea rcx, [0x1400d13c0]
call fcn.140081e00
mov rcx, qword [0x1400d14e0]
test al, al
je 0x140080933
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1400d14d0]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1400d1528], eax
cmp eax, 0xffffffff
jne 0x140080953
mov rcx, qword [0x1400d14e0]
call qword [sym.imp.WS2_32.dll_closesocket]
xor ebx, ebx
mov dword [0x1400d1528], 0xffffffff
mov qword [0x1400d14e0], rbx
xor al, al
jmp 0x140080ab0
lea eax, [r14 - 1]
mov qword [rsp + 0x188], rbp
xor ebx, ebx
mov qword [rsp + 0x190], rdi
mov rdi, qword [rsi]
test eax, 0xfffffffd
je 0x140080a0b
movabs rax, 0x6addaf8cef1b7c1
xor edx, edx
mov qword [rdi], rax
mov r8d, 0x104
mov rcx, qword [rsi + 8]
sub rcx, qword [rsi]
mov qword [rdi + 0x10], rcx
add rcx, 0xfffffffffffffff8
mov rax, qword [rsi + 0x10]
mov qword [rax], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [0x1400d1164]
lea r8, [rsp + 0x40]
lea rdx, [0x1400d1180]
lea rcx, [0x1400d1060]
call fcn.140084ae0
movsxd rax, dword [0x1400d1164]
lea r8, [rdi + 0x20]
mov rdx, qword [rdi + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400842e0
mov rbp, qword [rsp + 0x30]
add rbp, 0x20
mov qword [rdi + 0x10], rbx
jmp 0x140080a4c
movabs rax, 0xc1a6f29ed6b6c38
mov qword [rdi], rax
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
add rax, 0xffffffffffffffe8
mov qword [rdi + 0x10], rax
je 0x140080a48
nop dword [rax]
mov rax, qword [rsi + 0x10]
movzx ecx, byte [rbx + rax]
mov byte [rdi + rbx + 0x20], cl
inc rbx
mov rax, qword [rdi + 0x10]
cmp rbx, rax
jb 0x140080a30
lea rbp, [rax + 0x20]
mov qword [rdi + 0x18], rbp
lea rcx, [0x1400d1500]
mov rbx, qword [0x1400d14e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsi]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rdi, qword [rsp + 0x190]
lea eax, [r14 - 3]
mov rbp, qword [rsp + 0x188]
cmp eax, 1
ja 0x140080aae
cmp byte [0x1400c2054], 5
jne 0x140080aae
shl byte [0x1400c2055], 4
mov byte [0x1400c2054], 6
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007c870
add rsp, 0x160
pop r14
pop rsi
pop rbx
ret
Function at 0x140081bc0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rsi, r9
xor ecx, ecx
mov r14, r8
movzx edi, dx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov rcx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll_srand
movzx edx, di
mov rcx, rbx
call fcn.140081e00
test al, al
je 0x140081de1
cmp byte [0x1400cb9d8], 0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r15
jne 0x140081c33
lea rcx, [0x1400d1500]
mov byte [0x1400cb9d8], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [reloc.WS2_32.dll_closesocket], 3
jne 0x140081c4a
sar byte [0x1400c2050], 2
mov byte [reloc.WS2_32.dll_closesocket], 0x30
lea rcx, [0x1400d13c0]
sub rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140081c60
mov word [0x1400d13a6], di
mov rbp, 0xffffffffffffffff
nop dword [rax]
inc rbp
cmp byte [r14 + rbp], 0
jne 0x140081c80
movzx eax, word [r14]
lea rcx, [rsp + 0x20]
xor edx, edx
mov byte [rsp + 0x22], 0
mov word [rsp + 0x20], ax
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
movzx ecx, word [r14 + 2]
xor edx, edx
mov word [rsp + 0x20], cx
mov edi, eax
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
movzx ecx, word [r14 + rbp - 2]
xor edx, edx
mov word [rsp + 0x20], cx
mov ebx, eax
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
xor eax, ebx
mov r8, rbp
movzx ecx, al
mov rdx, r14
movzx eax, dil
xor ecx, eax
mov dword [0x1400d1164], ecx
lea ebx, [rcx + rcx]
mov r12d, ebx
lea rcx, [0x1400d1060]
add r12, 2
sub r8, r12
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
mov r15d, ebx
mov ebx, edi
test r15, r15
je 0x140081d60
sub r14, r12
lea r12, [0x1400d1180]
nop word [rax + rax]
lea rax, [r14 + rbx]
xor edx, edx
movzx ecx, word [rax + rbp]
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
xor al, dil
add rbx, 2
mov byte [rdi + r12], al
inc rdi
cmp rbx, r15
jb 0x140081d30
mov r15, qword [rsp + 0x30]
lea rcx, [0x1400d0f40]
mov r12, qword [rsp + 0x38]
sub rcx, rsi
mov rbp, qword [rsp + 0x40]
nop dword [rax]
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x140081d80
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140081dc0
lea rdx, [0x1400d12a0]
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140081db0
mov al, 1
mov byte [0x1400d13a4], al
mov edx, 8
movzx eax, byte [0x1400d1e0c]
test al, al
mov ecx, eax
mov al, 1
cmove ecx, edx
mov byte [0x1400d1e0c], cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007c870
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140081e00
Capabilities:
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movzx edi, dx
mov rbx, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140081e96
mov qword [rsp + 0x1f0], rsi
movzx ecx, di
mov esi, 2
mov word [0x1400d14d0], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [0x1400d14d4]
mov rdx, rbx
mov ecx, esi
mov word [0x1400d14d2], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
xor r8d, r8d
lea edx, [rsi - 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, qword [rsp + 0x1f0]
mov qword [0x1400d14e0], rax
cmp rax, 0xffffffffffffffff
je 0x140081e96
mov al, 1
jmp 0x140081ea3
mov qword [0x1400d14e0], 0
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14007c870
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1d0
pop rdi
ret

Function at 0x140081f80
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0
xor ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov ecx, dword [rsp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
xor r10d, r10d
xor edi, edi
cmp dword [rbx + 0x194], edi
jle 0x140082037
mov r8, rsi
lea r9, [rbx + 0x198]
lea r11d, [rdi + 0x37]
nop dword [rax + rax]
movzx edx, byte [r9]
lea r8, [r8 + 2]
mov ecx, edx
lea r9, [r9 + 1]
shr ecx, 4
and edx, 0xf
cmp ecx, 0xa
mov eax, 0x30
cmovae eax, r11d
add al, cl
mov byte [r8 - 2], al
cmp edx, 0xa
mov eax, 0x30
cmovae eax, r11d
add edi, 2
add al, dl
inc r10d
mov byte [r8 - 1], al
cmp r10d, dword [rbx + 0x194]
jl 0x140081ff0
movsxd rax, edi
mov rcx, rbx
test edi, edi
jle 0x1400820c8
mov qword [rsp + 0x48], rbp
mov byte [rax + rsi - 1], 0
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea rcx, str.iphlpapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
je 0x1400820be
lea rdx, [0x1400a6ee0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x1400820b5
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], 0
xor ecx, ecx
call rsi
cmp eax, 0x6f
jne 0x1400820b5
mov ecx, dword [rsp + 0x24]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea rdx, [rsp + 0x24]
mov rcx, rax
mov rbx, rax
call rsi
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x48]
lea eax, [rdi - 1]
jmp 0x1400820d2
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007c870
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140084a80
Capabilities:
Encode data using xor

Disassembly:
push rdi
xor eax, eax
mov rdi, r9
mov r11, rcx
test r8, r8
je 0x140084ad1
mov r9, qword [rsp + 0x30]
mov r10, rcx
mov qword [rsp + 0x10], rbx
sub rdx, rcx
mov rbx, r8
xor ecx, ecx
lea r10, [r10 + 1]
cmp rax, r9
cmovb rcx, rax
movzx eax, byte [rdx + r10 - 1]
xor al, byte [rcx + rdi]
mov byte [r10 - 1], al
lea rax, [rcx + 1]
sub rbx, 1
jne 0x140084aa2
mov byte [r11 + r8], bl
mov rbx, qword [rsp + 0x10]
pop rdi
ret
mov byte [rcx + r8], al
pop rdi
ret

Function at 0x140084ae0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, r8
movsxd r14, r9d
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov byte [rsp + 0x22], 0
xor edx, edx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], dl
jne 0x140084b43
test r8, r8
je 0x140084b78
lea rax, [rsp + 0x30]
sub rsi, rax
nop dword [rax]
movzx eax, dl
lea rcx, [rsp + 0x30]
add rcx, rdx
inc rdx
xor al, byte [rsi + rcx]
mov byte [rcx], al
cmp rdx, r8
jb 0x140084b60
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], dil
jne 0x140084b80
test rax, rax
je 0x140084bde
lea rsi, [rsp + 0x140]
nop word [rax + rax]
movzx eax, word [rbx + rdi]
lea rcx, [rsp + 0x20]
xor edx, edx
mov word [rsp + 0x20], ax
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
mov byte [rsi], al
lea rsi, [rsi + 1]
mov rax, 0xffffffffffffffff
add rdi, 2
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140084bd0
cmp rdi, rax
jb 0x140084ba0
xor eax, eax
test r14d, r14d
je 0x140084c20
lea r9, [rsp + 0x30]
mov rdx, rbp
sub r9, rbp
mov r8, r14
xor ecx, ecx
lea rdx, [rdx + 1]
cmp rax, rdi
cmovb rcx, rax
movzx eax, byte [rsp + rcx + 0x140]
xor al, byte [r9 + rdx - 1]
mov byte [rdx - 1], al
lea rax, [rcx + 1]
sub r8, 1
jne 0x140084bf3
mov byte [r14 + rbp], r8b
jmp 0x140084c24
mov byte [r14 + rbp], al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14007c870
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140084c50
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x230
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x20]
mov rbx, r9
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
je 0x140084e3c
mov edi, dword [rsp + 0x270]
lea eax, [rdi - 1]
cmp eax, 0xff
ja 0x140084e3c
xor edx, edx
lea rcx, [rsp + 0x120]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor r10d, r10d
cmp edi, 0x100
jne 0x140084d35
lea rax, [rsp + 0x120]
lea ecx, [r10 + 2]
nop
lea rax, [rax + 0x80]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
lea rbx, [rbx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x140084ce0
jmp 0x140084d6a
mov r8d, r10d
mov r9, r10
nop dword [rax + rax]
mov eax, r8d
mov byte [rsp + r9 + 0x20], r8b
cdq
lea r9, [r9 + 1]
idiv edi
inc r8d
movsxd rax, edx
movzx ecx, byte [rax + rbx]
mov byte [rsp + r9 + 0x11f], cl
cmp r8d, 0x100
jl 0x140084d40
mov edx, r10d
mov r8, r10
movzx eax, byte [rsp + r8 + 0x120]
movzx r9d, byte [rsp + r8 + 0x20]
add edx, eax
add edx, r9d
and edx, 0x800000ff
jge 0x140084d96
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + r8 + 0x20], al
inc r8
mov byte [rcx], r9b
cmp r8, 0x100
jl 0x140084d70
mov eax, r10d
test rbp, rbp
je 0x140084e38
test rsi, rsi
je 0x140084e38
test r14, r14
jle 0x140084e38
sub rbp, rsi
nop dword [rax]
inc eax
and eax, 0x800000ff
jge 0x140084de2
dec eax
or eax, 0xffffff00
inc eax
movsxd rcx, eax
lea r8, [rsp + 0x20]
add r8, rcx
movzx r9d, byte [r8]
lea ecx, [r10 + r9]
and ecx, 0x800000ff
jge 0x140084e07
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r10, ecx
lea rdx, [rsp + 0x20]
movzx ecx, byte [rdx + r10]
mov byte [r8], cl
mov byte [rdx + r10], r9b
movzx edx, byte [r8]
add rdx, r9
movzx ecx, dl
movzx edx, byte [rsp + rcx + 0x20]
xor dl, byte [rsi + rbp]
mov byte [rsi], dl
inc rsi
sub r14, 1
jne 0x140084dd0
mov al, 1
jmp 0x140084e3e
xor al, al
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14007c870
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret