joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033370
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rdi, rcx
movups xmm0, xmmword [rdx + 0x38]
movups xmm1, xmmword [rdx + 0x48]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rdx + 0x28]
movzx ebp, byte [rdx + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], bpl
mov rax, qword [0x140105118]
movzx eax, byte [rax]
mov ecx, 0x5f0
mov edx, 8
call fcn.14000b1e0
test rax, rax
je 0x1400335d9
mov rbx, rax
movabs r15, 0x800000000000000
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x28], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
nop dword [rax]
mov eax, 1
lock xadd qword [0x140120048], rax
mov r11, rax
xor r11, rcx
mov r14, r11
rol r14, 0x10
lea r12, [r11 + rdx]
xor r14, r12
lea r13, [r14 + r8]
xor rax, r13
add r11, r9
mov r12, r11
rol r12, 0x20
rol r14, 0x15
xor r11, r10
xor r13, r15
xor r13, r14
add rax, r11
rol r11, 0xd
add r12, r13
xor r11, rax
rol r13, 0x10
xor r13, r12
rol rax, 0x20
add r12, r11
add rax, r13
rol r11, 0x11
xor r11, r12
rol r13, 0x15
rol r12, 0x20
xor r13, rax
xor rax, r15
xor r12, 0xff
add rax, r11
add r12, r13
rol r11, 0xd
xor r11, rax
rol r13, 0x10
rol rax, 0x20
xor r13, r12
add r12, r11
rol r11, 0x11
add rax, r13
xor r11, r12
rol r13, 0x15
xor r13, rax
rol r12, 0x20
add rax, r11
add r12, r13
rol r11, 0xd
xor r11, rax
rol r13, 0x10
rol rax, 0x20
xor r13, r12
add r12, r11
rol r11, 0x11
add rax, r13
xor r11, r12
rol r13, 0x15
xor r13, rax
rol r12, 0x20
add rax, r11
add r12, r13
rol r11, 0xd
xor r11, rax
rol r13, 0x10
xor r13, r12
add r12, r11
rol r11, 0x11
rol r13, 0x15
mov rax, r12
rol rax, 0x20
xor rax, r11
xor rax, r13
cmp rax, r12
je 0x140033430
xor rax, r12
mov rcx, qword [rsi + 0x58]
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov rdx, qword [rsp + 0x20]
mov qword [rdi + 0x138], rdx
mov byte [rdi + 0x140], bpl
mov qword [rdi], 0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x80], 0
mov qword [rdi + 0x88], rbx
mov rdx, qword [rsp + 0x28]
mov qword [rdi + 0x100], rdx
mov qword [rdi + 0x108], rax
mov qword [rdi + 0x110], rcx
mov rdx, qword [rsi + 0x10]
mov rax, rdx
neg rax
jo 0x1400335c5
jae 0x1400335c5
mov rcx, qword [rsi + 0x18]
mov r8d, 1
call fcn.14000b1f0
mov rax, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.1400b3820
ud2
Function at 0x140033c30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, [0x1400d9108]
jmp 0x140035b20
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x140035bc7
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140035bbf
je 0x140035b60
test rdi, rdi
je 0x140035b64
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140035b66
mov rbx, qword [rdi + 8]
jmp 0x140035b66
xor eax, eax
jmp 0x140035bbf
xor ebx, ebx
mov rax, qword [0x140105118]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000b1e0
test rax, rax
je 0x140035be1
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140035bbc
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.14000b1f0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14008eee0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140035b44
jmp 0x140035bbf
mov ecx, 8
mov edx, 0x10
call fcn.1400b3820
int3

Function at 0x140034ad0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rcx, qword [0x1400d91f0]
xor edx, edx
jmp 0x140035c00
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x140035ce3
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140035cdb
je 0x140035cd9
test rbx, rbx
je 0x140035c43
mov rdi, qword [rbx + 8]
test byte [rbx], 1
mov qword [rbx], 0
jne 0x140035c53
call fcn.14003c0f0
mov rcx, rax
call fcn.14003be60
mov rdi, rax
mov rax, qword [0x140105118]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000b1e0
test rax, rax
je 0x140035cfd
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140035cd4
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
xor rax, 1
or rax, qword [rcx + 0x818]
jne 0x140035cc1
call fcn.14003d2f0
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.14000b1f0
mov rax, rsi
jmp 0x140035cdb
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14008eee0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140035c28
jmp 0x140035cdb
mov ecx, 8
mov edx, 0x10
call fcn.1400b3820
ud2
Function at 0x140035b20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, [0x1400d9108]
jmp 0x140035b20
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x140035bc7
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140035bbf
je 0x140035b60
test rdi, rdi
je 0x140035b64
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140035b66
mov rbx, qword [rdi + 8]
jmp 0x140035b66
xor eax, eax
jmp 0x140035bbf
xor ebx, ebx
mov rax, qword [0x140105118]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000b1e0
test rax, rax
je 0x140035be1
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140035bbc
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.14000b1f0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14008eee0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140035b44
jmp 0x140035bbf
mov ecx, 8
mov edx, 0x10
call fcn.1400b3820
int3

Function at 0x140035c00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rcx, qword [0x1400d91f0]
xor edx, edx
jmp 0x140035c00
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x140035ce3
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140035cdb
je 0x140035cd9
test rbx, rbx
je 0x140035c43
mov rdi, qword [rbx + 8]
test byte [rbx], 1
mov qword [rbx], 0
jne 0x140035c53
call fcn.14003c0f0
mov rcx, rax
call fcn.14003be60
mov rdi, rax
mov rax, qword [0x140105118]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000b1e0
test rax, rax
je 0x140035cfd
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140035cd4
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
xor rax, 1
or rax, qword [rcx + 0x818]
jne 0x140035cc1
call fcn.14003d2f0
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.14000b1f0
mov rax, rsi
jmp 0x140035cdb
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14008eee0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140035c28
jmp 0x140035cdb
mov ecx, 8
mov edx, 0x10
call fcn.1400b3820
ud2

Function at 0x140038360
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rcx, qword [0x140105010]
xor edx, edx
jmp 0x140035b20
Function at 0x140061730
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x140062b90
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 + 0x3d8], rcx
mov qword [rbp + 0x3e0], 0
mov qword [rbp + 0x3e8], 2
mov qword [rbp + 0x3f0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3d0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140062c20
jmp 0x140062c0f
jae 0x140062cea
cmp r8, 0x201
jae 0x140062c20
mov r14d, 0x200
lea r15, [rbp - 0x50]
mov r12, r8
jmp 0x140062c86
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x140062c5e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3e0]
mov rdx, rbx
call fcn.140051180
mov rsi, qword [rbp + 0x3e0]
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x3d0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3f0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3d0]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x140062cac
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140062d56
mov r8d, r13d
cmp r12, r8
jne 0x140062c00
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140062d89
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140062c0f
jmp 0x140062c20
cmp r14, r8
jb 0x140062da3
lea rcx, [rbp + 0x3b0]
mov rdx, r15
call fcn.140070740
movups xmm0, xmmword [rbp + 0x3b0]
movups xmm1, xmmword [rbp + 0x3c0]
mov rsi, qword [rbp + 0x3d8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3e0]
test rdx, rdx
je 0x140062d3f
mov rcx, qword [rbp + 0x3e8]
add rdx, rdx
mov r8d, 2
call fcn.14000b1f0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3e0]
test rdx, rdx
jne 0x140062d2a
jmp 0x140062d3f
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400c04c0
jmp 0x140062db8
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400c6de0
ud2
Function at 0x140077ec0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1400b4280
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x140077f40
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x140077f70
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140077f84
lea rax, [0x1400e5838]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x140077fa4
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.14000b1f0
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x140077fa4
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.14000b1f0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140078840
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1400d6a00
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov rsi, rdx
mov qword [rbp + 0xff8], rcx
mov qword [rbp + 0xfd8], rcx
mov qword [rbp + 0xfe0], rdx
lea rbx, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r15, [rbp + 0xfec]
lea rdi, [0x140083950]
lea r12, [rbp + 0xfb0]
mov r8d, 0x1000
lea rcx, [rbp + 0xfd8]
mov rdx, rbx
call fcn.140083780
mov r14, rdx
test rax, rax
jne 0x1400789bc
test r14, r14
je 0x14007898d
cmp r14, 0x1000
ja 0x140078a20
xor r13d, r13d
nop word cs:[rax + rax]
cmp r13, r14
ja 0x140078a0c
mov r8d, r14d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov r9, r12
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x140078988
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0xfec], 1
jne 0x140078950
cmp dword [rbp + 0xff0], 0
jne 0x14007898d
mov eax, dword [rbp + 0xff4]
add r13, rax
cmp r13, r14
jne 0x1400788f0
jmp 0x1400788ac
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp + 0xff8]
call fcn.1400d6e74
mov rcx, rsi
call fcn.1400d6e74
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x14007898d
mov rbx, r14
dec rbx
mov r15, qword [r14 - 1]
mov rdi, qword [r14 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x1400789e2
mov rcx, r15
call rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x1400789f7
mov r8, qword [rdi + 0x10]
mov rcx, r15
call fcn.14000b1f0
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.14000b1f0
jmp 0x14007898d
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r14
call fcn.1400c6e50
jmp 0x140078a34
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r14
call fcn.1400c6de0
ud2
Function at 0x14007cdd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rdi, qword [rdx + 8]
cmp rdi, 0xffffffffffffffff
je 0x14007cec3
mov eax, dword [rdx + 0x10]
movzx ebx, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r14d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x14007ce3a
mov r12, qword [rdx]
cmp bx, 0x2e
jne 0x14007cedd
test r15w, r15w
je 0x14007ce3a
mov eax, r15d
xor eax, 0x2e
or ax, r14w
jne 0x14007cedd
mov r14, rdx
lea rbx, [rbp - 0x60]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rdi
mov rdx, rbx
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x14007cecf
mov rbx, qword [r14]
lea r14, [rbp - 0x60]
jmp 0x14007ce7f
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x14007cecf
cmp word [rbp - 0x34], 0x2e
jne 0x14007ce9c
movzx eax, word [rbp - 0x32]
test ax, ax
je 0x14007ce70
cmp ax, 0x2e
jne 0x14007ce9c
cmp word [rbp - 0x30], 0
je 0x14007ce70
lock inc qword [rbx]
jle 0x14007cf69
lea rcx, [rsi + 0x10]
lea rdx, [rbp - 0x60]
mov r8d, 0x250
call sub.msvcrt.dll_memcpy
mov eax, 8
jmp 0x14007cf48
mov qword [rsi], 0
jmp 0x14007cf54
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x14007cf31
xor eax, eax
jmp 0x14007cf51
lock inc qword [r12]
jle 0x14007cf69
lea rax, [rdx + 0x14]
add rdx, 0x46
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x1c]
movups xmmword [rsi + 0x2c], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
lea rcx, [rsi + 0x42]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
mov qword [rsi + 8], r12
mov word [rsi + 0x3c], bx
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r14w
mov qword [rsi], 1
jmp 0x14007cf54
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov qword [rsi + 8], 0
mov eax, 0x10
mov qword [rsi + rax], rbx
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x270
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
ud2

Function at 0x14007daa0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.14008b200
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
mov rcx, rax
neg rcx
jo 0x14007db03
movabs rbx, 0x8000000000000000
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.14008d7f0
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x14007db0f
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x14007db3a
test rdi, rdi
je 0x14007db65
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14000b1f0
xor eax, eax
jmp 0x14007db06
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14007db06
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14000b1f0
jmp 0x14007db03
xor eax, eax
jmp 0x14007db06
Function at 0x140080bd0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1400e6a00]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x140080c5d
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x140080c6a
xor edx, edx
xor eax, eax
jmp 0x140080c93
cmp eax, 0x103
je 0x140080c9d
test eax, eax
js 0x140080c7d
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140080c93
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.14006e4a0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140042250
mov ecx, 7
int 0x29
ud2

Function at 0x140080cf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1400e6a00]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140080d84
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x140080db0
test eax, eax
js 0x140080d90
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140080da6
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.14006e4a0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140042250
mov ecx, 7
int 0x29
ud2
Function at 0x1400812d0
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp byte [rcx], 0
mov eax, 0x17
mov r14d, 2
cmovne r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400813a9
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x140081335
mov esi, eax
cmp eax, 0x2726
jne 0x14008139c
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140081395
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x1400813a9
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.WS2_32.dll_closesocket
mov ebx, 1
mov rsi, rdi
jmp 0x1400813a9
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x140081450
Capabilities:
Connect socket
Enumerate pe sections
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x450
lea rbp, [rsp + 0x80]
mov r15d, r9d
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov dword [rbp + 0x1b8], 1
mov rbx, qword [rcx]
lea r8, [rbp + 0x1b8]
mov rcx, rbx
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1400814bb
test byte [rsi], 1
je 0x1400814cf
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400814e4
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x14008173a
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rbp + 0x1b8], r9w
mov word [rbp + 0x1ba], cx
mov dword [rbp + 0x1bc], eax
movups xmmword [rbp + 0x1c0], xmm0
mov dword [rbp + 0x1d0], edx
lea rdx, [rbp + 0x1b8]
mov rcx, rbx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140081522
xor esi, esi
jmp 0x140081531
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov qword [rbp + 0x3c0], rsi
mov dword [rbp + 0x1b8], 0
lea r8, [rbp + 0x1b8]
add byte [rax], al