joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010160
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rax, rdx
mov rdi, rcx
lea rdx, [rbp - 4]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x140010253
mov rsi, rax
mov qword [rbp - 0x28], rdi
movsxd rax, dword [rbp - 4]
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea r13, [rsi + rax*8]
lea rbx, [rbp - 0x40]
lea r14, [rbp - 0x58]
lea r15, [rbp - 0x20]
mov rdi, rsi
jmp 0x1400101f1
add rdi, 8
mov rax, qword [rbp - 0x20]
lea rcx, [rdx + rdx*2]
mov rdx, qword [rbp - 0x30]
mov qword [rax + rcx*8 + 0x10], rdx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax + rcx*8], xmm0
inc qword [rbp - 0x10]
cmp rdi, r13
je 0x140010236
mov r12, qword [rdi]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rax
mov word [rbp - 0x48], 0
mov rcx, rbx
mov rdx, r14
call fcn.140019f60
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 0x18]
jne 0x1400101d0
mov rcx, r15
call fcn.140019b70
mov rdx, qword [rbp - 0x10]
jmp 0x1400101d0
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rcx], xmm0
jmp 0x140010261
mov qword [rdi], 8
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140012d90
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140012dd2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x140012dda
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140012deb
jmp 0x140012e02
xor r10d, r10d
jmp 0x140012e8d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140012e02
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140012e19
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140012e39
add r11, r8
jmp 0x140012f6a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140012f02
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140012eb0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140012f20
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140012f32
jmp 0x140012f4c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140012f4c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140012f66
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret

Function at 0x140013210
Capabilities:
Get disk size

Disassembly:
push rsi
sub rsp, 0x30
cmp qword [rcx + 0x78], 0
je 0x140013253
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov rcx, qword [rcx + 0x48]
lea r9, [rsp + 0x28]
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140013253
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x80], rax
mov al, 1
add rsp, 0x30
pop rsi
ret
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x140013260
Capabilities:
Get disk information

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rsi, rcx
call sub.KERNEL32.dll_GetLogicalDrives
mov dword [rbp + 0x14], eax
test eax, eax
je 0x14001332c
mov qword [rbp - 0x10], 8
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rax, [rbp + 0x14]
mov qword [rbp - 0x20], rax
movabs rax, 0x2000000000
mov qword [rbp - 0x18], rax
mov qword [rbp + 0xc], rax
lea rcx, [rbp + 0xc]
call fcn.14001fab0
mov rdi, rax
mov ebx, dword [rbp + 0xc]
mov r14d, dword [rbp + 0x10]
call fcn.14001fb80
xor ecx, ecx
cmp rdi, 0xffffffffffffffff
sete cl
cmp rcx, rax
cmova rax, rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], 1
lea rcx, [rbp - 0x38]
mov rdx, rdi
xor r8d, r8d
mov r9, rax
call fcn.140008db0
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x38]
call fcn.14001ae90
mov rax, qword [rbp]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
jmp 0x14001333a
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14001a600
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rsi, r9
mov rdi, rcx
add r8, rdx
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], r8
mov word [rbp], 0
mov dword [rbp + 8], 1
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x10]
call fcn.140019300
mov rax, qword [rbp + 0x70]
add rax, rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rax
mov word [rbp], 0
mov dword [rbp + 8], 1
lea rcx, [rbp - 0x30]
lea rbx, [rbp - 0x10]
mov rdx, rbx
call fcn.140019300
mov rsi, qword [rbp - 0x48]
mov qword [rbp - 0x10], 0
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9d, 0x20019
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
je 0x14001a6d9
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x14001a6b8
mov rcx, qword [rbp - 0x30]
add rdx, rdx
mov r8d, 2
call fcn.140007940
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x14001a6d2
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.140007940
xor ebx, ebx
jmp 0x14001a761
mov rcx, qword [rbp - 0x10]
mov dword [rbp + 0x10], 4
mov dword [rbp + 0x14], 0
mov rdi, qword [rbp - 0x30]
mov dword [rbp - 0x10], 0
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x14]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
mov qword [rbp - 0x18], rcx
mov rdx, rdi
xor r8d, r8d
call sub.ADVAPI32.dll_RegQueryValueExW
test eax, eax
sete bl
mov r14d, dword [rbp + 0x14]
mov rcx, qword [rbp - 0x18]
call sub.ADVAPI32.dll_RegCloseKey
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x14001a747
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140007940
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x14001a761
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.140007940
shl r14, 8
movzx eax, bl
or rax, r14
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14001c690
Capabilities:
Get local ipv4 addresses

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp + 0x18], 0x3c00
mov dword [rbp + 0x14], 0
xor r15d, r15d
lea rbx, [rbp + 0x18]
xor r14d, r14d
nop word [rax + rax]
cmp r14d, 3
jae 0x14001c79a
mov edx, dword [rbp + 0x18]
mov rcx, r15
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
je 0x14001c732
mov rdi, rax
mov qword [rbp + 8], rax
mov byte [rbp + 0x1f], 1
mov qword [rsp + 0x20], rbx
xor ecx, ecx
mov edx, 0xe
xor r8d, r8d
mov r9, rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
inc r14d
mov dword [rbp + 0x14], eax
mov r15, rdi
cmp eax, 0x6f
je 0x14001c6d0
test eax, eax
jne 0x14001c797
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov qword [rsi], 0
jmp 0x14001c804
movzx eax, byte [0x1400a31c1]
mov ecx, 0x32
mov edx, 1
call fcn.140007930
test rax, rax
je 0x14001c817
mov rdi, rax
movups xmm0, xmmword [0x14007b148]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x14007b138]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.failed_to_allocate_memory_for_IP_ADAPTER_ADDRESSESGetAdaptersAddresses___failed_with_code]
movups xmmword [rax], xmm0
mov word [rax + 0x30], 0x5345
mov rcx, r15
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsi], rdi
mov qword [rsi + 8], 0x32
mov qword [rsi + 0x10], 0x32
jmp 0x14001c804
mov r15, rdi
lea rax, [rbp + 0x14]
mov qword [rbp - 0x10], rax
lea rax, [0x140070bf0]
mov qword [rbp - 8], rax
lea rax, [0x14007b188]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov qword [rbp + 8], r15
mov byte [rbp + 0x1f], 1
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.14006a580
mov rax, qword [rbp - 0x18]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rsi], xmm0
mov rcx, r15
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp], r15
mov ecx, 1
mov edx, 0x32
call fcn.140077aa0
ud2
Function at 0x14001fbc0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x14001fbe8
mov rax, rsi
add rsp, 0x60
pop rbx
pop rsi
pop rbp
ret
lea rdx, str.RAYON_NUM_THREADSRAYON_RS_NUM_CPUSThreadPoolBuildErrorkind
lea rcx, [rbp - 0x38]
mov r8d, send
call fcn.14004b040
movzx eax, byte [rbp - 0x20]
cmp eax, 2
je 0x14001fc6f
cmp eax, 3
jne 0x14001fc57
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x14001fc6f
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x10], rdx
call fcn.140070120
movzx ebx, byte [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001fc4e
mov r8d, 1
mov rcx, qword [rbp - 0x10]
call fcn.140007940
test bl, bl
jne 0x14001fc6f
jmp 0x14001fcd9
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14001fc6f
mov rcx, qword [rbp - 0x38]
mov r8d, 1
call fcn.140007940
lea rdx, [0x14007b889]
lea rcx, [rbp - 0x38]
mov r8d, send
call fcn.14004b040
movzx eax, byte [rbp - 0x20]
cmp eax, 2
je 0x14001fcfc
cmp eax, 3
jne 0x14001fce4
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x14001fcfc
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x10], rdx
call fcn.140070120
movzx ebx, byte [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001fcd5
mov r8d, 1
mov rcx, qword [rbp - 0x10]
call fcn.140007940
test bl, bl
jne 0x14001fcfc
test rsi, rsi
jne 0x14001fbdd
jmp 0x14001fcfc
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14001fcfc
mov rcx, qword [rbp - 0x38]
mov r8d, 1
call fcn.140007940
nop
add rsp, 0x60
pop rbx
pop rsi
pop rbp
jmp 0x14002a830
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140024260
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [rdx + 0x10]
movzx r14d, byte [rdx + 0x18]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x28], rax
mov byte [rbp - 0x20], r14b
movzx eax, byte [0x1400a31c1]
mov ecx, 0x5f0
mov edx, 8
call fcn.140007930
test rax, rax
mov qword [rbp - 8], rbx
je 0x1400244d6
mov rdi, rax
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x60]
mov qword [rbp - 0x10], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
nop word cs:[rax + rax]
mov eax, 1
lock xadd qword [0x1400a31d8], rax
mov r13, rax
xor r13, rcx
lea r15, [rdx + r13]
mov rbx, r13
rol rbx, 0x10
xor rbx, r15
lea r12, [rbx + r8]
rol rbx, 0x15
add r13, r9
mov r15, r13
xor r15, r10
rol r13, 0x20
xor rax, r12
add rax, r15
rol r15, 0xd
xor r12, r11
xor r15, rax
rol rax, 0x20
xor r12, rbx
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r12, rax
xor r15, r13
rol r13, 0x20
xor rax, r11
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
xor r13, 0xff
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor r12, rax
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor r12, rax
add rax, r15
rol r15, 0xd
add r13, r12
rol r12, 0x10
xor r12, r13
rol r12, 0x15
xor r15, rax
add r13, r15
rol r15, 0x11
mov rax, r13
rol rax, 0x20
xor rax, r15
xor rax, r12
xor rax, r13
je 0x140024330
mov rdx, qword [rbp - 8]
mov rcx, qword [rdx + 0x40]
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [rsi + 0x128], xmm1
movups xmmword [rsi + 0x118], xmm0
mov r8, qword [rbp - 0x18]
mov qword [rsi + 0x138], r8
mov byte [rsi + 0x140], r14b
mov qword [rsi], 0
mov qword [rsi + 8], rdi
mov qword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov r8, qword [rbp - 0x10]
mov qword [rsi + 0x100], r8
mov qword [rsi + 0x108], rax
mov qword [rsi + 0x110], rcx
mov rcx, qword [rdx + 0x48]
test rcx, rcx
je 0x1400244c2
mov rdx, qword [rdx + 0x50]
test rdx, rdx
je 0x1400244c2
mov r8d, 1
call fcn.140007940
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.140077aa0
ud2
Function at 0x14002a830
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x14001fbe8
mov rax, rsi
add rsp, 0x60
pop rbx
pop rsi
pop rbp
ret
lea rdx, str.RAYON_NUM_THREADSRAYON_RS_NUM_CPUSThreadPoolBuildErrorkind
lea rcx, [rbp - 0x38]
mov r8d, send
call fcn.14004b040
movzx eax, byte [rbp - 0x20]
cmp eax, 2
je 0x14001fc6f
cmp eax, 3
jne 0x14001fc57
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x14001fc6f
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x10], rdx
call fcn.140070120
movzx ebx, byte [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001fc4e
mov r8d, 1
mov rcx, qword [rbp - 0x10]
call fcn.140007940
test bl, bl
jne 0x14001fc6f
jmp 0x14001fcd9
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14001fc6f
mov rcx, qword [rbp - 0x38]
mov r8d, 1
call fcn.140007940
lea rdx, [0x14007b889]
lea rcx, [rbp - 0x38]
mov r8d, send
call fcn.14004b040
movzx eax, byte [rbp - 0x20]
cmp eax, 2
je 0x14001fcfc
cmp eax, 3
jne 0x14001fce4
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x14001fcfc
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x10], rdx
call fcn.140070120
movzx ebx, byte [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001fcd5
mov r8d, 1
mov rcx, qword [rbp - 0x10]
call fcn.140007940
test bl, bl
jne 0x14001fcfc
test rsi, rsi
jne 0x14001fbdd
jmp 0x14001fcfc
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14001fcfc
mov rcx, qword [rbp - 0x38]
mov r8d, 1
call fcn.140007940
nop
add rsp, 0x60
pop rbx
pop rsi
pop rbp
jmp 0x14002a830
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140040570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
cmp r8, 0x80
jb 0x14004078d
movdqu xmm4, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
not ecx
movd xmm0, ecx
pxor xmm0, xmm4
add rdx, 0x40
add r8, 0xffffffffffffffc0
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140081500]
nop word cs:[rax + rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm0
pclmulqdq xmm7, xmm5, 0x11
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm6
pxor xmm0, xmm7
movdqu xmm6, xmmword [rdx + 0x10]
movdqu xmm7, xmmword [rdx + 0x20]
movdqu xmm8, xmmword [rdx + 0x30]
movdqa xmm9, xmm3
pclmulqdq xmm9, xmm4, 0
pxor xmm9, xmm6
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm9
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm7
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm8
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
add rdx, 0x40
add r8, 0xffffffffffffffc0
cmp r8, 0x3f
ja 0x1400405e0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm5, xmmword [0x140081510]
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
pxor xmm0, xmm1
cmp r8, 0x10
jb 0x14004070a
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdx]
add r8, 0xfffffffffffffff0
add rdx, 0x10
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
cmp r8, 0xf
ja 0x1400406e0
movdqa xmm1, xmmword [0x140081510]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
psrldq xmm0, 4
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x140081520], 0x10
pblendw xmm2, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm2, 0
pxor xmm1, xmm0
pextrd ecx, xmm1, 1
not ecx
test r8, r8
je 0x1400407ab
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.140040050
mov eax, ecx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14004ade0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14004ae70
jmp 0x14004ae5f
jae 0x14004af30
cmp r8, 0x201
jae 0x14004ae70
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14004aec8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14004ae9f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400768a0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14004aef1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004af98
mov r8d, r14d
cmp r15, r8
jne 0x14004ae50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004afbb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14004ae5f
jmp 0x14004ae70
cmp rsi, r8
jb 0x14004afd5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14004e480
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14004af81
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140007940
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14004af69
jmp 0x14004af81
lea rcx, [0x140086358]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140077c30
jmp 0x14004afea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140078080
ud2
Function at 0x14004e420
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x14004e45a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14004e471
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret