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

Disassembly:
sub rsp, 0x48
mov eax, dword [0x145d1e384]
mov dword [rsp + 0x58], 0
test eax, eax
jne 0x14006d6ae
movabs rax, 0xffff800fffffffff
movabs rdx, 0xffffffffd
add rax, rcx
cmp rax, rdx
ja 0x14006d6c9
test cl, 3
jne 0x14006d6c9
mov eax, 1
jmp 0x14006d6cb
cmp eax, 2
jne 0x14006d6c9
movabs rax, 0xffff9fffffffffff
movabs rdx, 0x1ffffffffffd
jmp 0x14006d69a
xor eax, eax
test eax, eax
je 0x14006d758
mov eax, dword [0x1410d2ef0]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x25], rcx
xor r9d, r9d
mov qword [rsp + 0x40], rbx
mov r8d, send
movsxd rbx, dword [0x1410d2ee0]
mov rcx, rbx
mov byte [rsp + 0x20], 0x2b
mov dword [rsp + 0x21], eax
mov dword [rsp + 0x2d], 4
mov byte [rsp + 0x31], 0
call qword [sym.imp.WS2_32.dll_send]
mov r9d, 8
lea rdx, [rsp + 0x60]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x58]
mov r9d, 8
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

Function at 0x14006d760
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x48
mov eax, dword [0x145d1e384]
mov qword [rsp + 0x60], 0
test eax, eax
jne 0x14006d79f
movabs rax, 0xffff800fffffffff
movabs rdx, 0xffffffffd
add rax, rcx
cmp rax, rdx
ja 0x14006d7ba
test cl, 3
jne 0x14006d7ba
mov eax, 1
jmp 0x14006d7bc
cmp eax, 2
jne 0x14006d7ba
movabs rax, 0xffff9fffffffffff
movabs rdx, 0x1ffffffffffd
jmp 0x14006d78b
xor eax, eax
test eax, eax
je 0x14006d84a
mov eax, dword [0x1410d2ef0]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x25], rcx
xor r9d, r9d
mov qword [rsp + 0x40], rbx
mov r8d, send
movsxd rbx, dword [0x1410d2ee0]
mov rcx, rbx
mov byte [rsp + 0x20], 0x2b
mov dword [rsp + 0x21], eax
mov dword [rsp + 0x2d], 8
mov byte [rsp + 0x31], 0
call qword [sym.imp.WS2_32.dll_send]
mov r9d, 8
lea rdx, [rsp + 0x58]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
mov r8d, dword [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov r9d, 8
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret
Function at 0x140075ba0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140075c65
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140075c65
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140075c7e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140075c55
cmp byte [rcx], 0x5c
jne 0x140075c4e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x140075c4e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140075c3c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x140075c4b
test r8b, 0x10
jne 0x140075c4e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x140075c4e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140072360
test edi, edi
jne 0x140075bc0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140072350
int3

Function at 0x140078110
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x50
xor ebx, ebx
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x28], rbx
lea r8, [0x14005f8d0]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
movaps xmmword [rsp + 0x30], xmm7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x14005ca60]
mov qword [0x1410d2e90], rax
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.1400685f0
movss xmm7, dword [0x140d49f70]
movss xmm6, dword [0x140d49d7c]
nop dword [rax + rax]
call fcn.140068b50
call fcn.140061690
cmp byte [0x1410d2f24], bl
je 0x140078197
call fcn.140069870
call fcn.14000d1e0
mov rcx, qword [0x1410d2e68]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
call fcn.14007a9a0
mov ecx, 0x4100
call qword [sym.imp.OPENGL32.dll_glClear]
call qword [sym.imp.OPENGL32.dll_glLoadIdentity]
movaps xmm2, xmm7
xorps xmm1, xmm1
xorps xmm0, xmm0
call qword [sym.imp.OPENGL32.dll_glTranslatef]
movaps xmm2, xmm6
movaps xmm1, xmm6
movaps xmm0, xmm6
call qword [sym.imp.OPENGL32.dll_glColor3f]
mov rax, qword [0x1410d2c60]
mov rcx, qword [rax + 0x48c8]
mov rax, qword [rcx]
mov rcx, rbx
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.14002f9a0
mov rcx, qword [0x1410d2e68]
call fcn.1400815f0
jmp 0x140078180
Function at 0x14007efb0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1410cd688], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14007f009
mov rcx, qword [rbx + 0x360]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x1410cd678], xmm0
movsd qword [0x1410cd680], xmm1
mov eax, dword [rbx + 0x8c]
cmp eax, 0x34001
je 0x14007f026
cmp eax, 0x34004
je 0x14007f026
mov rcx, qword [0x1410cd6a8]
jmp 0x14007f045
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14007f035
mov rcx, qword [rcx + 8]
jmp 0x14007f045
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140078410
mov rcx, rbx
call fcn.14007e5d0
cmp dword [rbx + 0x208], 0
je 0x14007f0a2
mov rax, qword [rbx + 0x360]
lea rcx, [rsp + 0x20]
mov edx, 1
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 0x14007f0a2
lea rdx, [0x1400b1060]
mov ecx, 0x10008
call fcn.140082470
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14007f0b0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
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 0x14007f0f2
lea rdx, [0x1400b1090]
mov ecx, 0x10008
call fcn.140082470
add rsp, 0x38
ret

Function at 0x14007f100
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x208], 0
mov rbx, rcx
je 0x14007f150
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 0x14007f150
lea rdx, [0x1400b1090]
mov ecx, 0x10008
call fcn.140082470
xor ecx, ecx
mov qword [0x1410cd688], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1410cd678]
mov qword [0x1410cd690], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1410cd680]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x3a0], ecx
mov rcx, qword [rbx + 0x360]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x3a4], 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 + 0x8c]
cmp eax, 0x34001
je 0x14007f1d9
cmp eax, 0x34004
je 0x14007f1d9
mov rcx, qword [0x1410cd6a8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14007f1f2
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 0x14007f210
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x360]
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 0x14007f252
lea rdx, [0x1400b1060]
mov ecx, 0x10008
call fcn.140082470
add rsp, 0x38
ret

Function at 0x14007f300
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, send
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, send
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns 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, socket
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 0x140081700
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 0x140081730
lea rdx, [0x1400b1910]
mov ecx, 0x10008
call fcn.14007b860
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140082820
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 [0x140d5c040]
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, [0x1410ccfa2]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1410ccd28]
xor r12d, r12d
lea r15, [0x1410cd042]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x1400829d8
cmp ebx, 0x140
jb 0x14008293f
cmp ebx, 0x14e
ja 0x14008293f
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], WSACleanup
mov dword [rsp + 0x6c], WSACleanup
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], WSACleanup
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x14008294e
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 0x1400829a1
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 0x1400829d8
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 0x1400828a1
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140093920
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 0x140086bf0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
cmp qword [0x1410cc820], 0
lea rax, [0x1400b36c0]
lea rcx, [0x1400b36d0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x140086c29
mov eax, 1
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1410cc820], rax
mov rcx, rax
test rax, rax
jne 0x140086c54
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140086c30
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140086c76
lea rdx, [0x1400b36e0]
mov ecx, 0x10006
call fcn.14007b860
xor eax, eax
add rsp, 0x48
ret
lea rdx, [0x1400b3700]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1410cc820]
lea rdx, [0x1400b3718]
mov qword [0x1410cc828], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1410cc820]
lea rdx, [0x1400b3738]
mov qword [0x1410cc830], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1410cc820]
lea rdx, [0x1400b3750]
mov qword [0x1410cc838], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1410cc820]
lea rdx, [0x1400b3768]
mov qword [0x1410cc840], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1410cc820]
lea rdx, [0x1400b3780]
mov qword [0x1410cc848], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1410cc820]
lea rdx, [0x1400b3798]
mov qword [0x1410cc850], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1410cc828], 0
mov qword [0x1410cc858], rax
je 0x140086d60
cmp qword [0x1410cc838], 0
je 0x140086d60
cmp qword [0x1410cc840], 0
je 0x140086d60
cmp qword [0x1410cc848], 0
je 0x140086d60
cmp qword [0x1410cc850], 0
je 0x140086d60
test rax, rax
jne 0x140086c1f
lea rdx, [0x1400b37b0]
mov ecx, 0x10008
call fcn.14007b860
mov rcx, qword [0x1410cc820]
test rcx, rcx
je 0x140086d8d
call fcn.140087620
mov qword [0x1410cc820], 0
xor eax, eax
add rsp, 0x48
ret
Function at 0x14008cf60
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x160
mov rax, qword [0x140d5c040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
mov r14d, edx
mov rcx, qword [0x145d1eba0]
test rcx, rcx
jne 0x14008cfb3
movzx edx, word [0x145d1ea66]
test dx, dx
je 0x14008cfb3
lea rcx, [0x145d1ea80]
call fcn.14008e520
test al, al
je 0x14008d029
mov rcx, qword [0x145d1eba0]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x145d1eb90]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x145d1ef04], eax
cmp eax, 0xffffffff
jne 0x14008d043
cmp qword [0x145d1eba0], 0
jne 0x14008d043
movzx edx, word [0x145d1ea66]
test dx, dx
je 0x14008d043
lea rcx, [0x145d1ea80]
call fcn.14008e520
mov rcx, qword [0x145d1eba0]
test al, al
je 0x14008d023
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x145d1eb90]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x145d1ef04], eax
cmp eax, 0xffffffff
jne 0x14008d043
mov rcx, qword [0x145d1eba0]
call qword [sym.imp.WS2_32.dll_closesocket]
xor ebx, ebx
mov dword [0x145d1ef04], 0xffffffff
mov qword [0x145d1eba0], rbx
xor al, al
jmp 0x14008d1a0
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 0x14008d0fb
movabs rax, 0x6addaf8cef1b7c1
xor edx, edx
mov qword [rdi], rax
mov r8d, Ordinal_265
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 [0x145d1ede4]
lea r8, [rsp + 0x40]
lea rdx, [0x145d1ee00]
lea rcx, [0x145d1ece0]
call fcn.140091240
movsxd rax, dword [0x145d1ede4]
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.140090a40
mov rbp, qword [rsp + 0x30]
add rbp, 0x20
mov qword [rdi + 0x10], rbx
jmp 0x14008d13c
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 0x14008d138
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 0x14008d120
lea rbp, [rax + 0x20]
mov qword [rdi + 0x18], rbp
lea rcx, [0x145d1ef20]
mov rbx, qword [0x145d1eba0]
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 0x14008d19e
cmp byte [0x140d5bfc4], 5
jne 0x14008d19e
shl byte [0x140d5bfc5], 4
mov byte [0x140d5bfc4], 6
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140093920
add rsp, 0x160
pop r14
pop rsi
pop rbx
ret
Function at 0x14008e2b0
Capabilities:
Encode data using xor
Initialize winsock library

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x1f8
mov rax, qword [0x140d5c040]
xor rax, rsp
mov qword [rsp + 0x1d0], 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
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14008e30e
xor edi, edi
mov qword [0x145d1eba0], rdi
xor al, al
jmp 0x14008e501
movzx edx, di
mov rcx, rbx
call fcn.14008e520
test al, al
je 0x14008e307
cmp byte [0x1410cdeb8], 0
mov qword [rsp + 0x1f0], rbp
mov qword [rsp + 0x1e8], r12
mov qword [rsp + 0x1e0], r15
jne 0x14008e35f
lea rcx, [0x145d1ef20]
mov byte [0x1410cdeb8], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x145d1ef60]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [reloc.WS2_32.dll_closesocket], 3
jne 0x14008e376
sar byte [0x140d5bfc0], 2
mov byte [reloc.WS2_32.dll_closesocket], 0x30
lea rcx, [0x145d1ea80]
sub rcx, rbx
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14008e380
mov word [0x145d1ea66], di
mov rbp, 0xffffffffffffffff
nop dword [rax]
inc rbp
cmp byte [r14 + rbp], 0
jne 0x14008e3a0
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 [0x145d1ede4], ecx
lea ebx, [rcx + rcx]
mov r12d, ebx
lea rcx, [0x145d1ece0]
add r12, 2
sub r8, r12
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
mov r15d, ebx
mov ebx, edi
test r15, r15
je 0x14008e480
sub r14, r12
lea r12, [0x145d1ee00]
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 0x14008e450
mov r15, qword [rsp + 0x1e0]
lea rcx, [0x145d1ebc0]
mov r12, qword [rsp + 0x1e8]
sub rcx, rsi
mov rbp, qword [rsp + 0x1f0]
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x14008e4a2
mov rax, qword [rsp + 0x240]
test rax, rax
je 0x14008e4e0
lea rdx, [0x145d1e960]
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14008e4d0
mov al, 1
mov byte [0x145d1ea64], al
mov edx, 8
movzx eax, byte [0x145d1ef4c]
test al, al
mov ecx, eax
mov al, 1
cmove ecx, edx
mov byte [0x145d1ef4c], cl
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140093920
add rsp, 0x1f8
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008e520
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 2
movzx ecx, dx
mov word [0x145d1eb90], di
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rbx
mov word [0x145d1eb92], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x145d1eb94], eax
cmp eax, 0xffffffff
jne 0x14008e58e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14008e5aa
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
test rax, rax
je 0x14008e58e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x145d1eb94], eax
xor r8d, r8d
mov ecx, edi
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x145d1eba0], rax
cmp rax, 0xffffffffffffffff
jne 0x14008e5c2
mov qword [0x145d1eba0], 0
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14008e690
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 [0x140d5c040]
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 0x14008e747
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, gethostbyname
cmovae eax, r11d
add al, cl
mov byte [r8 - 2], al
cmp edx, 0xa
mov eax, gethostbyname
cmovae eax, r11d
add edi, 2
add al, dl
inc r10d
mov byte [r8 - 1], al
cmp r10d, dword [rbx + 0x194]
jl 0x14008e700
movsxd rax, edi
mov rcx, rbx
test edi, edi
jle 0x14008e7d8
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, [0x1400b3d98]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
je 0x14008e7ce
lea rdx, [0x1400b3db8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14008e7c5
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], 0
xor ecx, ecx
call rsi
cmp eax, 0x6f
jne 0x14008e7c5
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 0x14008e7e2
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.140093920
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret