joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c97c6
Capabilities:
Create thread

Disassembly:
jmp 0x1401da710
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x1401da73c
mov dword [rsp + 0x30], 1
jmp 0x1401da744
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1401da78d
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x14026a028]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0xc8
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.1400c4a46
cmp eax, 1
jne 0x1401da78d
int3
cmp dword [rsp + 0x34], 0
jne 0x1401da7cf
call fcn.1400c600d
mov dword [rax], 0x16
mov qword [rsp + 0x20], 0
mov r9d, 0xc8
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.1400c8beb
xor eax, eax
jmp 0x1401da8cf
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1401da200
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401da000
lea rcx, [rsp + 0x40]
call fcn.1401da070
movzx eax, al
test eax, eax
jne 0x1401da81f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.1401da050
mov rax, qword [rsp + 0x50]
jmp 0x1401da8cf
lea rcx, [rsp + 0x40]
call fcn.1401da3b0
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x1401d9db0]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1401da893
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c5a09
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.1401da050
mov rax, qword [rsp + 0x58]
jmp 0x1401da8cf
cmp qword [rsp + 0xa8], 0
je 0x1401da8ac
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.1401da370
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.1401da050
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x1402133c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c5054
sub rsp, rax
mov rax, qword [0x1402b7138]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402bc920]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402135b2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140213506
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140213506
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1402134eb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140213488
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140213572
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402135d1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1402135ad
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402135d1
jmp 0x14021345e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c6afd
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140213680
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c5054
sub rsp, rax
mov rax, qword [0x1402b7138]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402bc920]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14021388d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1402137d9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402137d9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1402137b9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140213748
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14021384d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402138ac
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140213888
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402138ac
jmp 0x14021371e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c6afd
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400ef010]
mov dword [rax], 1
mov rax, qword [0x1400ef020]
mov dword [rax], 1
mov rax, qword [0x1400ef030]
mov dword [rax], 1
mov rax, qword [0x1400ef000]
mov dword [rax], 1
mov rax, qword [0x1400eeec0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140026590
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], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x140026610
jmp 0x1400265ff
jae 0x1400266b4
cmp r8, 0x201
jae 0x140026610
lea r12, [rsp + 0x68]
mov r13d, 0x200
mov rbp, r8
jmp 0x140026657
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x140026637
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.140013690
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
mov r12, qword [rsp + 0x20]
mov r13, r15
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov ecx, ebp
mov rdx, r12
call sub.KERNEL32.DLL_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x14002667b
call sub.KERNEL32.DLL_GetLastError
test eax, eax
jne 0x140026712
mov r8d, ebx
cmp rbp, r8
jne 0x1400265f0
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x140026732
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x1400265ff
jmp 0x140026610
cmp r13, r8
jb 0x14002674c
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.140034c90
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
je 0x1400266fb
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call fcn.140002ef0
mov rax, rdi
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 rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x1400266e5
jmp 0x1400266fb
lea rcx, str.internal_error:_entered_unreachable_codePd_f_
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14009d4b0
jmp 0x140026761
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.1400a40f0
ud2
Function at 0x140026cd0
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 rsi, rcx
lea rcx, [rsp + 0xa8]
call fcn.1400550a0
mov r15, qword [rsp + 0xa8]
test r15, r15
je 0x140026e38
mov qword [rsp + 0x30], rsi
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
xor r14d, r14d
xor esi, esi
cmp r8, 0x201
jae 0x140026d80
jmp 0x140026d62
mov r15, rbx
jae 0x140026e4e
cmp r8, 0x201
jae 0x140026d80
lea rbp, [rsp + 0xa8]
mov r12d, 0x200
mov r13, r8
jmp 0x140026dcb
sub r8, rsi
sub r14, rsi
cmp r14, r8
jae 0x140026da7
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.140013690
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
mov eax, 0xffffffff
cmp rdi, rax
mov esi, 0xffffffff
cmovb rsi, rdi
mov qword [rsp + 0x48], rsi
mov r14, rdi
mov rbp, qword [rsp + 0x28]
mov r12, rsi
mov r13, rsi
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov rbx, r15
mov rcx, r15
mov rdx, rbp
mov r8d, r13d
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140026df7
call sub.KERNEL32.DLL_GetLastError
test eax, eax
jne 0x140026f0a
mov r8d, r15d
cmp r13, r8
jne 0x140026d50
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x140026f32
mov r15, rbx
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x140026d62
jmp 0x140026d80
lea rcx, [rsp + 0xb0]
call fcn.140008d30
mov byte [rsi + 0x18], 2
jmp 0x140026ed1
cmp r12, r8
jb 0x140026f4c
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.140034c90
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
test rdi, rdi
je 0x140026e9c
add rdi, rdi
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call fcn.140002ef0
cmp byte [rsp + 0x68], 2
jne 0x140026ee8
mov rsi, qword [rsp + 0x30]
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x50]
call fcn.140008d30
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x140026ed1
add rdx, rdx
mov r8d, 2
mov rcx, r15
call fcn.140002ef0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
mov rsi, qword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x140026ec0
jmp 0x140026ed1
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x68], 2
mov r15, rbx
test rdi, rdi
jne 0x140026e86
jmp 0x140026e9c
lea rcx, str.internal_error:_entered_unreachable_codePd_f_
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14009d4b0
jmp 0x140026f61
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.1400a40f0
ud2
Function at 0x1400360e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140036110
test ecx, ecx
jne 0x140036160
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14003611c
test ecx, ecx
jne 0x140036160
mov rcx, rdi
call fcn.140035fc0
movzx eax, al
test bpl, bpl
jne 0x140036167
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140036153.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400362d8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140036153.2
xor eax, eax
test bpl, bpl
je 0x14003612c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400362b9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14003619a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140036219
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1400361e0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400361fb
inc rax
dec rdi
cmp rax, 1
jne 0x1400361c0
jmp 0x140036219
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400361fb
cmp ebx, 0x5c
je 0x1400361fb
inc rax
dec rdi
cmp rax, 1
jne 0x1400361e0
jmp 0x140036219
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400362c7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140036243
mov al, 9
cmp rdx, 2
je 0x140036247
cmp rdx, 1
jne 0x140036257
cmp byte [r8], 0x2e
jne 0x140036257
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140036257
mov al, 0xa
jmp 0x140036257
cmp byte [r8], 0x2e
jne 0x140036257
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140036153.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140036153.2
mov ecx, 2
jmp case.0x140036153.2
lea r8, [0x1400c8820]
call fcn.1400a4070
ud2
lea r8, [0x1400c8838]
call fcn.1400a4070
ud2
Function at 0x14003d030
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.14008f280
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003d08b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14003d102
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140002ef0
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 0x14003d10f
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
je 0x14003d102
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140002ef0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
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
jne 0x14003d0f1
jmp 0x14003d102
Function at 0x14003dcb0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10a8
call fcn.1400c0430
sub rsp, rax
movaps xmmword [rsp + 0x1090], xmm6
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
lea r14, [rsp + 0x90]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
lea r15, [rsp + 0x40]
xorps xmm6, xmm6
lea rbx, [rsp + 0x28]
lea r12, [0x14004d920]
lea r13, [rsp + 0x70]
mov qword [rsp + 0x38], rdi
mov r9d, 0x1000
mov rcx, r15
mov rdx, rdi
mov r8, r14
call fcn.14004cc20
cmp qword [rsp + 0x40], 0
jne 0x14003de46
mov rbp, qword [rsp + 0x48]
test rbp, rbp
je 0x14003de1a
cmp rbp, 0x1000
ja 0x14003de66
mov rdi, r14
mov r14, r15
xor r15d, r15d
nop dword [rax + rax]
mov r8d, ebp
sub r8d, r15d
lea rdx, [rsp + r15]
add rdx, 0x90
mov dword [rsp + 0x28], 0
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x20], r12
mov rcx, rsi
mov r9, r13
call sub.KERNEL32.DLL_WriteFileEx
test eax, eax
je 0x14003ddf0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.DLL_SleepEx
cmp dword [rsp + 0x28], 0
je 0x14003ddb0
mov eax, dword [rsp + 0x2c]
test rax, rax
jne 0x14003ddf5
mov eax, dword [rsp + 0x30]
add r15, rax
cmp r15, rbp
je 0x14003dde0
jbe 0x14003dd60
jmp 0x14003de52
mov r15, r14
mov r14, rdi
mov rdi, qword [rsp + 0x38]
jmp 0x14003dd17
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 1
lea rcx, [rsp + 0x58]
call fcn.140008d30
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.DLL_CloseHandle
mov rcx, rsi
call sub.KERNEL32.DLL_CloseHandle
movaps xmm6, xmmword [rsp + 0x1090]
add rsp, 0x10a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x48]
call fcn.140008d30
jmp 0x14003de1a
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov rdx, rbp
call fcn.1400a4170
jmp 0x14003de7a
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbp
call fcn.1400a40f0
ud2

Function at 0x140044c60
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400550a0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140044d15
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.14004b980
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140044d15
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.DLL_CreateDirectoryW
test eax, eax
je 0x140044cea
test rsi, rsi
je 0x140044ce6
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140002ef0
xor esi, esi
jmp 0x140044d15
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140044d12
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140002ef0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x140048670
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 [0x1400ca9b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400486b4
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 0x140048711
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140048720
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140048757
cmp eax, 0x103
je 0x140048761
test eax, eax
js 0x14004873d
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140048757
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1400caa18]
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.140032700
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140009d40
mov ecx, 7
int 0x29
ud2

Function at 0x1400487d0
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 [0x1400ca9b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140048814
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 0x140048878
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400488ae
test eax, eax
js 0x140048889
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400488a1
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1400caa18]
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.140032700
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140009d40
mov ecx, 7
int 0x29
ud2