joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ce120
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13e8
call fcn.14015ca80
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
movaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x1401e56c8]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
ucomisd xmm0, xmm1
movaps xmm6, xmm1
movaps xmm7, xmm0
jp 0x1400ce161
je 0x1400ce37d
comisd xmm7, xmm6
ja 0x1400ce37d
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x1400ce190
movsd xmm2, qword [0x1401c4810]
mov edx, 0x270
movsd xmm4, qword [0x1401c4a08]
xorps xmm3, xmm3
mov dword [rsp + 0x20], edx
xorps xmm0, xmm0
mov r10d, 2
cmp edx, 0x270
jne 0x1400ce232
lea r8, [rsp + 0x28]
mov r9d, edx
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400ce1f0
mov edx, dword [rsp + 0x20]
jmp 0x1400ce310
cmp edx, 0x4e0
jb 0x1400ce310
xor r8d, r8d
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 + 0x1018]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0xe3
jb 0x1400ce241
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 - 0x368]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0x26f
jb 0x1400ce290
mov edx, dword [rsp + 0x13a0]
mov eax, dword [rsp + 0x24]
and edx, 0x80000000
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [rsp + 0x654]
xor edx, edx
mov dword [rsp + 0x9e0], ecx
mov dword [rsp + 0x20], edx
mov eax, edx
xorps xmm1, xmm1
inc edx
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov dword [rsp + 0x20], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm1, rax
subsd xmm1, xmm3
mulsd xmm1, xmm2
mulsd xmm2, xmm4
addsd xmm0, xmm1
sub r10, 1
jne 0x1400ce1d4
divsd xmm0, xmm2
subsd xmm6, xmm7
mulsd xmm0, xmm6
addsd xmm0, xmm7
jmp 0x1400ce380
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.14015bde0
movaps xmm6, xmmword [rsp + 0x13d0]
movaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e8
ret
Function at 0x1400f2d90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
xor r10d, r10d
mov edi, r8d
mov rbx, rdx
mov r11d, 0x7fffffff
test ecx, ecx
jle 0x1400f2df6
mov qword [rsp + 0x10], rsi
imul edi, r9d
mov r9, rdx
mov esi, ecx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, r11d
imul eax, dword [rbx]
lea rbx, [rbx + 0x10]
mov r8, r10
mov r10, r9
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
cmovl r11d, eax
cmp eax, ecx
cmovge r10, r8
add r9, 0x10
sub rsi, 1
jne 0x1400f2dc0
mov rsi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r10
pop rdi
ret

Function at 0x1400f3700
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1401e9138], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400f3759
mov rcx, qword [rbx + 0x368]
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 [0x1401e9128], xmm0
movsd qword [0x1401e9130], xmm1
mov eax, dword [rbx + 0x90]
cmp eax, 0x34001
je 0x1400f3776
cmp eax, 0x34004
je 0x1400f3776
mov rcx, qword [0x1401e9158]
jmp 0x1400f3795
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400f3785
mov rcx, qword [rcx + 8]
jmp 0x1400f3795
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.1400edc80
mov rcx, rbx
call fcn.1400f2d10
cmp dword [rbx + 0x210], 0
je 0x1400f37f2
mov rax, qword [rbx + 0x368]
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 0x1400f37f2
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400f6c10
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400f3800
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 0x1400f3842
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400f6c10
add rsp, 0x38
ret
Function at 0x1400f3850
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x210], 0
mov rbx, rcx
je 0x1400f38a0
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 0x1400f38a0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400f6c10
xor ecx, ecx
mov qword [0x1401e9138], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1401e9128]
mov qword [0x1401e9140], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1401e9130]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x3a8], ecx
mov rcx, qword [rbx + 0x368]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x3ac], 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 + 0x90]
cmp eax, 0x34001
je 0x1400f3929
cmp eax, 0x34004
je 0x1400f3929
mov rcx, qword [0x1401e9158]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400f3942
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 0x1400f3960
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x368]
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 0x1400f39a2
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400f6c10
add rsp, 0x38
ret

Function at 0x1400f3a50
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, reloc.WS2_32.dll_select
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 0x1400f5e20
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 0x1400f5e50
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1400efff0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1400f6fc0
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 [0x1401e56c8]
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, [0x1401e8a52]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1401e87d8]
xor r12d, r12d
lea r15, [0x1401e8af2]
mov ebx, reloc.WLDAP32.dll_Ordinal_32
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x1400f7178
cmp ebx, 0x140
jb 0x1400f70df
cmp ebx, 0x14e
ja 0x1400f70df
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], WSAGetLastError
mov dword [rsp + 0x64], WSAGetLastError
mov dword [rsp + 0x68], WSACleanup
mov dword [rsp + 0x6c], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0x74], WSACleanup
mov dword [rsp + 0x78], WSAGetLastError
mov edi, dword [r14]
jmp 0x1400f70ee
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 0x1400f7141
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 0x1400f7178
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 0x1400f7041
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14015bde0
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 0x1400fb3b0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1401e56c8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1401e82d0], 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 0x1400fb405
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14015bde0
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 [0x1401e82d0], rax
test rax, rax
jne 0x1400fb447
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1400fb410
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400efff0
jmp 0x1400fb564
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e82d0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1401e82d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e82d0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1401e82e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e82d0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1401e82e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e82d0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1401e82f0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e82d0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1401e82f8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e82d0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1401e8300], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1401e82d8], 0
mov qword [0x1401e8308], rax
je 0x1400fb537
cmp qword [0x1401e82e8], 0
je 0x1400fb537
cmp qword [0x1401e82f0], 0
je 0x1400fb537
cmp qword [0x1401e82f8], 0
je 0x1400fb537
cmp qword [0x1401e8300], 0
je 0x1400fb537
test rax, rax
je 0x1400fb537
mov eax, 1
jmp 0x1400fb566
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400efff0
mov rcx, qword [0x1401e82d0]
test rcx, rcx
je 0x1400fb564
call fcn.1400fbdf0
mov qword [0x1401e82d0], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14015bde0
add rsp, 0x48
ret
Function at 0x140106eb0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140106f92
call fcn.14011e210
test al, al
jne 0x140106f92
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140106ee2
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.140129220
test rax, rax
je 0x140106f27
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.140129220
mov rsi, rax
test rax, rax
je 0x140106f27
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x140106f5b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140119900
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140106f40
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140114880
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa97], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140114949
cmp qword [rcx + 0x260], 0
je 0x1401148fe
mov qword [rsp + 0x40], rbx
call fcn.140101740
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140101ab0
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
movzx edx, bl
mov rcx, rdi
call fcn.140101ab0
mov rbx, qword [rsp + 0x40]
jmp 0x140114949
mov ecx, esi
test edx, edx
je 0x14011490e
sub ecx, 1
je 0x14011490e
cmp ecx, 1
jne 0x140114949
mov r9, qword [rdi + 0x1d0]
lea rax, [0x140188180]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1401172f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x140117770
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1401e56c8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1401177d6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1401177b9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1401177b3
shr ax, 8
cmp al, 2
je 0x1401177d6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14015bde0
add rsp, 0x1e8
ret
call fcn.14014d520
test eax, eax
jne 0x1401179d5
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140117816
mov qword [0x1401e9a58], rsi
jmp 0x140117992
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExA
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x140188660]
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x14011787a
mov rcx, rbx
test rbp, rbp
je 0x14011786c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14011795a
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x14011795a
test rbp, rbp
je 0x1401178a9
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401178a9
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14011795a
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x140117952
lea ecx, [rax + 1]
add rcx, 0xc
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140117949
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140117949
mov rcx, 0xffffffffffffffff
mov rax, rcx
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x1401178f5
mov word [rax + rdi], 0x5c
inc rcx
cmp byte [rdi + rcx], sil
jne 0x140117906
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140117920
mov rcx, rdi
test rbp, rbp
je 0x140117940
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140117946
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.14015d4b9]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1401e9a58], rsi
test rsi, rsi
je 0x140117992
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140117992
mov qword [0x1401e9a50], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14014d0d0
test al, al
lea rcx, [0x1401ecb38]
setne byte [0x1401ecb30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14015bde0
add rsp, 0x1e8
ret
Function at 0x1401299b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1401072a0
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x14010fe83.1
mov rcx, rdi
mov rsi, rax
call case.0x14010fe83.1
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x140129a60
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1401072a0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140107330
cmp rax, 0x3e8
ja 0x140129a91
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140129a10
test rsi, rsi
je 0x140129a6d
mov rcx, rsi
call fcn.14015d4b9
test rbx, rbx
je 0x140129a7a
mov rcx, rbx
call fcn.14015d4b9
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x140129a9e
mov rcx, rsi
call fcn.14015d4b9
test rbx, rbx
je 0x140129aab
mov rcx, rbx
call fcn.14015d4b9
mov eax, 1
jmp 0x140129a7c
Function at 0x14012a010
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14012a1ae
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14012a18e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14012a07e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14012a070
inc rbx
jmp 0x14012a080
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14012a08d
lea ebp, [rax + 0xe]
jmp 0x14012a099
cmp eax, 0x17
jne 0x14012a131
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x14012a131
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14012a131
cmp rax, rbp
jb 0x14012a131
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14012a140
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x14012a11e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x14012a12e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14012a060
jmp 0x14012a146
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14012a160
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14012a189
test rdi, rdi
je 0x14012a185
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.14015d4b9]
mov rdi, rbx
test rbx, rbx
jne 0x14012a170
xor edi, edi
jmp 0x14012a19d
test rdi, rdi
jne 0x14012a19d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x14012a610
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
test rax, rax
je 0x14012a646
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret