joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140c66058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c661df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c66089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c6606f
add dl, dl
jne 0x140c66096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c660f6
xor eax, eax
add dl, dl
jne 0x140c660a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c661ad
add dl, dl
jne 0x140c660b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c660c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c660d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c660dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c660ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c6607e
mov eax, 1
add dl, dl
jne 0x140c66106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c66113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c660fb
sub eax, ebx
mov ebx, 1
jne 0x140c6614c
mov ecx, 1
add dl, dl
jne 0x140c6612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c6613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c66123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c6607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c66168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c66175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c6615d
cmp eax, 0x7d00
jae 0x140c6619b
cmp eax, 0x500
jb 0x140c66196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c6607e
cmp eax, 0x7f
ja 0x140c6619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c6607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c661d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c6607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r12
lea rbp, [rsp - 0xa70]
sub rsp, 0xb70
mov ebx, edx
mov r12, rcx
lea rcx, [rbp - 0x80]
lea rdx, [0x1400021e0]
mov r8d, 0xae9
mov rsi, r9
mov dword [rsp + 0x68], 1
call sub.MSVCR100.dll_memcpy
lea r11, [rbp - 0x80]
mov eax, 0xae8
xor byte [r11], 0x44
inc r11
dec rax
jne 0x140001051
mov qword [rsp + 0x21], rax
mov qword [rsp + 0x29], rax
lea r8d, [rax + 4]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x2c]
mov qword [rsp + 0x31], rax
mov qword [rsp + 0x39], rax
mov qword [rsp + 0x41], rax
mov qword [rsp + 0x49], rax
mov qword [rsp + 0x51], rax
mov dword [rsp + 0x59], eax
mov word [rsp + 0x5d], ax
mov byte [rsp + 0x5f], al
mov dword [rsp + 0x20], pe_nt_image_headers64
mov dword [rsp + 0x60], 0xb23
mov dword [rsp + 0x24], 0x89495900
mov dword [rsp + 0x28], 0xc18148c8
call qword [sym.imp.MSVCR100.dll_memmove]
lea rdx, [rbp + 0xaa0]
lea rcx, [rsp + 0x31]
mov r8d, 4
mov byte [rsp + 0x30], 0xba
call qword [sym.imp.MSVCR100.dll_memmove]
mov ecx, dword [rsp + 0x60]
add ecx, ebx
lea rdx, [rsp + 0x70]
mov r8d, 4
mov dword [rsp + 0x70], ecx
lea rcx, [rsp + 0x38]
mov word [rsp + 0x35], 0x8149
mov byte [rsp + 0x37], 0xc0
call qword [sym.imp.MSVCR100.dll_memmove]
lea rdx, [rbp + 0xab0]
lea rcx, [rsp + 0x3e]
mov r8d, 4
mov word [rsp + 0x3c], 0xb941
call qword [sym.imp.MSVCR100.dll_memmove]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x52]
mov r8d, 4
mov dword [rsp + 0x42], 0xe6894856
mov dword [rsp + 0x46], 0xf0e48348
mov dword [rsp + 0x4a], 0x30ec8348
mov dword [rsp + 0x4e], 0x202444c7
call qword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [rbp + 0xab0]
mov dword [rsp + 0x56], 0x5e8
mov dword [rsp + 0x5a], 0xf4894800
lea ecx, [rbx + rax + 0xb28]
mov rax, qword [rbp + 0xac0]
mov word [rsp + 0x5e], 0xc35e
mov dword [rax], ecx
call qword [sym.imp.MSVCR100.dll_malloc]
mov rdi, qword [rbp + 0xab8]
lea rdx, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x40
mov qword [rdi], rax
call qword [sym.imp.MSVCR100.dll_memmove]
mov rcx, qword [rdi]
lea rdx, [rbp - 0x80]
add rcx, 0x40
mov r8d, 0xae8
call qword [sym.imp.MSVCR100.dll_memmove]
mov rcx, qword [rdi]
mov r8, rbx
add rcx, 0xb28
mov rdx, r12
call qword [sym.imp.MSVCR100.dll_memmove]
mov rcx, qword [rdi]
mov r8d, dword [rbp + 0xab0]
lea rcx, [rbx + rcx + 0xb28]
mov rdx, rsi
call qword [sym.imp.MSVCR100.dll_memmove]
lea r11, [rsp + 0xb70]
mov eax, 1
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x140001540
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rdx
mov rdi, rcx
add rcx, 0x48
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x20
call fcn.14000ab60
test rax, rax
je 0x14000159a
mov rbx, rax
mov r14, rdx
mov rcx, rax
call qword [rdx]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1400015f8
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140004680
jmp 0x1400015f8
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x88], xmm1
movups xmmword [rsp + 0x78], xmm0
lea r8, [0x1400a3158]
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov r9d, 8
call fcn.14000a480
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
mov qword [rdi + 0x28], rcx
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x18], xmm0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi + 8], xmm0
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x38], rcx
mov qword [rdi], rax
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140007bb0
Function at 0x140006d40
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [rcx]
mov rdi, qword [rsi]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140006d57
dec ecx
jmp 0x140006d61
mov rcx, rdi
call fcn.140056120
mov ecx, eax
mov edx, 1
call fcn.1400a002c
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140006d8f
dec qword [rcx]
jne 0x140006d8f
dec qword [rcx + 8]
jne 0x140006d8f
mov edx, 0x170
mov r8d, 0x10
call fcn.140004680
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.140004680
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140006dad
dec ecx
jmp 0x140006db7
mov rcx, rdi
call fcn.140056120
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.1400a002c
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14000b070
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x14000b0d6
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
jmp 0x14000b098
add rdi, rbx
sub rsi, rbx
je 0x14000b0d6
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x14000b090
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14000b090
add ebp, 0x80000000
jmp 0x14000b0d8
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14002c1a0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x14002c220
jmp 0x14002c20f
jae 0x14002c2c4
cmp r8, 0x201
jae 0x14002c220
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x14002c267
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x14002c247
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.1400176b0
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rbx, r14
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x40], r15
mov rsi, rbx
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x14002c28b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14002c322
mov r8d, edi
cmp rbp, r8
jne 0x14002c200
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002c34c
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14002c20f
jmp 0x14002c220
cmp r12, r8
jb 0x14002c366
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140038f20
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14002c30b
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call fcn.140004680
mov rax, rsi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x28]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14002c2f5
jmp 0x14002c30b
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14008bda0
jmp 0x14002c37b
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.1400921b0
ud2
Function at 0x14002c990
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rdi, rcx
movabs rsi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.140056930
mov rax, qword [rsp + 0xa8]
cmp rax, rsi
jne 0x14002c9df
lea rcx, [rsp + 0xb0]
call fcn.14000db80
mov qword [rdi], rsi
jmp 0x14002cbaa
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x30], rax
xor r15d, r15d
mov edi, 0xffffffff
xor r14d, r14d
xor esi, esi
cmp r8, 0x201
jae 0x14002ca70
jmp 0x14002ca4f
jae 0x14002cb19
cmp r8, 0x201
jae 0x14002ca70
mov r13d, 0x200
lea r12, [rsp + 0xa8]
mov rbp, r8
jmp 0x14002cab6
sub r8, rsi
sub r14, rsi
cmp r14, r8
jae 0x14002ca97
lea rcx, [rsp + 0x48]
mov rdx, rsi
call fcn.1400176b0
mov r15, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp r15, rdi
mov esi, 0xffffffff
cmovb rsi, r15
mov qword [rsp + 0x58], rsi
mov r14, r15
mov r13, rsi
mov r12, qword [rsp + 0x30]
mov rbp, rsi
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, r12
mov r8d, ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x14002cae0
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14002cbde
mov r8d, ebx
cmp rbp, r8
jne 0x14002ca40
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002cc12
add rbp, rbp
cmp rbp, rdi
cmovae rbp, rdi
mov r8, rbp
cmp r8, 0x201
jb 0x14002ca4f
jmp 0x14002ca70
cmp r13, r8
jb 0x14002cc2c
lea rcx, [rsp + 0x88]
mov rdx, r12
call fcn.140038f20
movabs rsi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rdi, qword [rsp + 0x40]
test r15, r15
je 0x14002cb76
add r15, r15
mov r8d, 2
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call fcn.140004680
cmp qword [rsp + 0x60], rsi
jne 0x14002cbc1
mov qword [rdi], rsi
lea rcx, [rsp + 0x68]
mov rsi, qword [rsp + 0x28]
call fcn.14000db80
test rsi, rsi
je 0x14002cbaa
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.140004680
mov rax, rdi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rsi, qword [rsp + 0x28]
test rsi, rsi
jne 0x14002cb94
jmp 0x14002cbaa
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rsi, 0x8000000000000000
mov qword [rsp + 0x60], rsi
mov rdi, qword [rsp + 0x40]
test r15, r15
jne 0x14002cb60
jmp 0x14002cb76
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14008bda0
jmp 0x14002cc41
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.1400921b0
ud2
Function at 0x1400401d0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14007d770
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140040267
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140040299
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x1400402b7
jmp 0x1400402c8
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1400402c8
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140004680
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x1400402c8
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140004680
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140040b40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.14009fbe0
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
lea r15, [rsp + 0x50]
xorps xmm6, xmm6
lea rbx, [rsp + 0x34]
lea r12, [0x14004f100]
lea r13, [rsp + 0x60]
mov qword [rsp + 0x28], rdi
mov r9d, 0x1000
mov rcx, r15
mov rdx, rdi
mov r8, r14
call fcn.14004e980
cmp qword [rsp + 0x50], 0
jne 0x140040cc6
mov rbp, qword [rsp + 0x58]
test rbp, rbp
je 0x140040c9a
cmp rbp, 0x1000
ja 0x140040ce6
mov rdi, r14
mov r14, r15
xor r15d, r15d
nop word cs:[rax + rax]
mov r8d, ebp
sub r8d, r15d
lea rdx, [rsp + r15]
add rdx, 0x80
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x20], r12
mov rcx, rsi
mov r9, r13
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x140040c70
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140040c30
movsxd rax, dword [rsp + 0x38]
test rax, rax
jne 0x140040c75
mov eax, dword [rsp + 0x3c]
add r15, rax
cmp r15, rbp
je 0x140040c60
jbe 0x140040bf0
jmp 0x140040cd2
mov r15, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jmp 0x140040b9d
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x48]
mov rdi, qword [rsp + 0x28]
call fcn.14000db80
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1080]
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x58]
call fcn.14000db80
jmp 0x140040c9a
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov rdx, rbp
call fcn.140092230
jmp 0x140040cfa
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbp
call fcn.1400921b0
ud2
Function at 0x1400468d0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x20]
call fcn.140056930
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x14004698f
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14004d710
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rdi, rbx
je 0x14004698f
mov rcx, rsi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x140046964
test rdi, rdi
je 0x140046960
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140004680
xor esi, esi
jmp 0x14004698f
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14004698c
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140004680
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004a010
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140940498]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14004a054
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14004a0b1
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14004a0c0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14004a0f7
cmp eax, 0x103
je 0x14004a101
test eax, eax
js 0x14004a0dd
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14004a0f7
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140940500]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140036d70
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14000e6e0
mov ecx, 7
int 0x29
ud2
Function at 0x14004a170
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140940498]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14004a1b4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14004a218
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14004a24e
test eax, eax
js 0x14004a229
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14004a241
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140940500]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140036d70
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14000e6e0
mov ecx, 7
int 0x29
ud2

Function at 0x14004a8c0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14004a914
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14004a9aa
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x14004a927
cmp eax, 0x2739
jne 0x14004a975
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14004a970
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x14004a98a
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14004a9aa
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14004a9aa
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.ws2_32.dll_closesocket
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14004aa50
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x450
mov ebx, r9d
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov dword [rsp + 0x40], 1
mov rdi, qword [rcx]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14004aab2
cmp word [r15], 0
je 0x14004aac7
movups xmm0, xmmword [r15 + 4]
mov eax, dword [r15 + 0x14]
mov edx, dword [r15 + 0x18]
movzx ecx, word [r15 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
mov r9d, 0x2ceb0017
mov eax, dword [r15 + 2]
movzx ecx, word [r15 + 6]
mov r8d, 0x10
mov r9w, 2
mov ecx, 0x570f0002
invalid
rol cx, 8