joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180163e60
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180163ea0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180202780]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180163ede
cmp rsi, r14
jb 0x180163ed6
cmp rsi, r15
jae 0x180163ed6
cmp qword [rsi + 8], 0
jne 0x1801640a7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180163ec1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180163f72
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180163f69
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180163f69
cmp dword [rsp + 0x70], 0x10000
je 0x180163feb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180163f69
sub rbx, rbp
cmp rbx, r14
jae 0x180163f30
test rsi, rsi
jne 0x180164050
cmp rdi, r15
ja 0x18016408f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18016408f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18016408f
cmp dword [rsp + 0x70], 0x10000
je 0x180164021
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180163fa2
jmp 0x18016408f
test rbx, rbx
je 0x180163f69
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180164050
cmp rbx, r14
jae 0x180163f10
jmp 0x180163f72
test rdi, rdi
je 0x18016408f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180164050
cmp rdi, r15
jbe 0x180163f80
jmp 0x18016408f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180164060
mov rax, qword [0x180202780]
mov qword [rsi], rax
mov qword [0x180202780], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18016647c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1801664b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1801664bb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180166504
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x180166504
dec r8
sub rdx, 1
jne 0x1801664ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140019090
Capabilities:
Create pipe

Disassembly:
sub rsp, 0x118
mov al, dl
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov dl, al
and dl, 1
mov byte [rsp + 0x9f], dl
mov ecx, 0x18
mov edx, ecx
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x110], 0
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x108], rcx
mov rcx, qword [rsp + 0x108]
and al, 1
movzx eax, al
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xf0], 0
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x40]
xor r9d, r9d
call sub.KERNEL32.dll_CreatePipe
mov ecx, eax
call fcn.140018fa0
mov rcx, rax
call fcn.1400376e0
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x140019202
mov rcx, qword [rsp + 0x58]
call fcn.140013260
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x60]
call fcn.140013260
mov qword [rsp + 0x20], rax
jmp 0x140019252
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rdx
lea r8, str._home_noviui_.cargo_registry_src_index.crates.io_6f17d22bba15001f_subprocess_0.2.9_src_win32.rs
call fcn.1400334a0
mov rax, qword [rsp + 0x30]
add rsp, 0x118
ret
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x90]
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], rcx
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rcx
mov qword [rax], 0
jmp 0x140019220
Function at 0x14001a290
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x34], edx
call fcn.140018f70
mov edx, dword [rsp + 0x24]
mov rcx, rax
call sub.KERNEL32.dll_TerminateProcess
mov ecx, eax
call fcn.140018fa0
nop
add rsp, 0x38
ret

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

Disassembly:
sub rsp, 0x198
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x5f], 0
mov qword [rsp + 0x138], rcx
mov qword [rsp + 0x140], rdx
mov byte [rsp + 0xd7], 1
mov qword [rsp + 0x148], rcx
call fcn.140034350
mov dword [rsp + 0x58], eax
jmp 0x14002c52a
mov ecx, dword [rsp + 0x58]
call sub.KERNEL32.dll_TlsGetValue
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], rax
cmp rax, 1
jne 0x14002c55c
mov qword [rsp + 0x60], 0
jmp 0x14002c738
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x170], rax
cmp rax, 0
jne 0x14002c63c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x110], 0
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x100], rcx
movups xmm0, xmmword [rsp + 0x110]
movups xmm1, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0xf0], xmm1
movaps xmmword [rsp + 0xe0], xmm0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0xc0], rcx
movaps xmm0, xmmword [rsp + 0xe0]
movaps xmm1, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0xb0], xmm1
movaps xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rcx
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x88], xmm1
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x70], rax
mov ecx, 0x30
mov edx, 8
call fcn.140023980
mov qword [rsp + 0x38], rax
jmp 0x14002c690
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
add rcx, 8
mov byte [rsp + 0xd7], 0
call fcn.140021950
mov qword [rsp + 0x30], rax
jmp 0x14002c71b
mov rcx, qword [rsp + 0x38]
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsp + 0x80]
movups xmm2, xmmword [rsp + 0x90]
movups xmmword [rcx + 0x20], xmm2
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx], xmm0
call fcn.140036580
mov qword [rsp + 0x28], rax
jmp 0x14002c6c8
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x178], rax
mov qword [rsp + 0x180], rcx
mov qword [rsp + 0x188], rax
call fcn.140034350
mov dword [rsp + 0x24], eax
jmp 0x14002c6f5
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rsp + 0x194], ecx
mov qword [rsp + 0x68], rax
jmp 0x14002c646
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
jmp 0x14002c738
mov rax, qword [rsp + 0x60]
add rsp, 0x198
ret
Function at 0x14002c750
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
mov byte [rsp + 0x67], 1
mov qword [rsp + 0x78], rcx
call fcn.140034350
mov dword [rsp + 0x4c], eax
jmp 0x14002c7a6
mov ecx, dword [rsp + 0x4c]
call sub.KERNEL32.dll_TlsGetValue
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
cmp rax, 1
ja 0x14002c7e5
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov byte [rsp + 0x67], 0
call fcn.14002c4c0
mov qword [rsp + 0x28], rax
jmp 0x14002c846
mov rcx, qword [rsp + 0x30]
add rcx, 8
call fcn.140021aa0
mov qword [rsp + 0x20], rax
jmp 0x14002c7fa
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 1
jne 0x14002c837
lea rax, [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x14002c839
jmp 0x14002c7ca
mov rax, qword [rsp + 0x50]
add rsp, 0xa8
ret
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
jmp 0x14002c839

Function at 0x14002c9c0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x108
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 1
mov byte [rsp + 0x5f], 0
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x80], 0
mov byte [rsp + 0x8f], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], rcx
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov byte [rsp + 0xb7], 1
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0xd8], rcx
call fcn.140034350
mov dword [rsp + 0x3c], eax
jmp 0x14002cab8
mov ecx, dword [rsp + 0x3c]
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
mov dword [rsp + 0xf4], eax
mov byte [rsp + 0xb7], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa8]
call fcn.14003f6a0
jmp 0x14002caf4
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0xf8], rcx
call fcn.140034350
mov dword [rsp + 0x2c], eax
jmp 0x14002cb0c
mov ecx, dword [rsp + 0x2c]
xor eax, eax
mov edx, eax
call sub.KERNEL32.dll_TlsSetValue
mov dword [rsp + 0x104], eax
add rsp, 0x108
ret
Function at 0x140080050
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 0x1400800d0
jmp 0x1400800bf
jae 0x140080174
cmp r8, 0x201
jae 0x1400800d0
lea r12, [rsp + 0x68]
mov r13d, 0x200
mov rbp, r8
jmp 0x140080117
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x1400800f7
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.14006d7a0
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 0x14008013b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400801d2
mov r8d, ebx
cmp rbp, r8
jne 0x1400800b0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400801f2
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x1400800bf
jmp 0x1400800d0
cmp r13, r8
jb 0x14008020c
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.14008e810
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 0x1400801bb
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call fcn.140002860
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 0x1400801a5
jmp 0x1400801bb
lea rcx, [0x140122d88]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400f6900
jmp 0x140080221
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.1400fd620
ud2

Function at 0x140080260
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x140080278
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [fcn.140085400]
mov qword [rsp + 0x38], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rdx, str.library_std_src_syswindowsos.rs
lea rcx, [rsp + 0x40]
call fcn.1400f6880
ud2
Function at 0x1400807a0
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
lea rcx, [rsp + 0xa8]
call fcn.1400aef10
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140080909
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor esi, esi
mov r14d, 0xffffffff
xor r15d, r15d
xor ebx, ebx
cmp r8, 0x201
jae 0x140080860
jmp 0x14008083f
jae 0x14008091f
cmp r8, 0x201
jae 0x140080860
lea r12, [rsp + 0xa8]
mov r13d, 0x200
mov rbp, r8
jmp 0x1400808a6
sub r8, rbx
sub r15, rbx
cmp r15, r8
jae 0x140080887
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.14006d7a0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rsi, qword [rsp + 0x50]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rsp + 0x58], rbx
mov r15, rsi
mov r12, qword [rsp + 0x28]
mov r13, rbx
mov rbp, rbx
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 edi, eax
test eax, eax
jne 0x1400808d0
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400809db
mov r8d, edi
cmp rbp, r8
jne 0x140080830
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140080a05
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14008083f
jmp 0x140080860
lea rcx, [rsp + 0xb0]
call fcn.140063090
mov byte [rdi + 0x18], 2
jmp 0x1400809a7
cmp r13, r8
jb 0x140080a1f
lea rcx, [rsp + 0x88]
mov rdx, r12
call fcn.14008e810
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 rsi, rsi
je 0x140080972
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.140002860
cmp byte [rsp + 0x78], 2
jne 0x1400809be
mov byte [rdi + 0x18], 2
lea rcx, [rsp + 0x60]
mov rsi, qword [rsp + 0x30]
call fcn.140063090
test rsi, rsi
je 0x1400809a7
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.140002860
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 + 0x30]
test rsi, rsi
jne 0x140080991
jmp 0x1400809a7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 2
mov rdi, qword [rsp + 0x40]
test rsi, rsi
jne 0x14008095c
jmp 0x140080972
lea rcx, [0x140122d88]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400f6900
jmp 0x140080a34
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.1400fd620
ud2
Function at 0x14008fcc0
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 0x14008fcf0
test ecx, ecx
jne 0x14008fd40
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14008fcfc
test ecx, ecx
jne 0x14008fd40
mov rcx, rdi
call fcn.14008fba0
movzx eax, al
test bpl, bpl
jne 0x14008fd47
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14008fd33.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14008feb8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14008fd33.2
xor eax, eax
test bpl, bpl
je 0x14008fd0c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14008fe99
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14008fd7a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14008fdf9
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 0x14008fdc0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14008fddb
inc rax
dec rdi
cmp rax, 1
jne 0x14008fda0
jmp 0x14008fdf9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14008fddb
cmp ebx, 0x5c
je 0x14008fddb
inc rax
dec rdi
cmp rax, 1
jne 0x14008fdc0
jmp 0x14008fdf9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14008fea7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14008fe23
mov al, 9
cmp rdx, 2
je 0x14008fe27
cmp rdx, 1
jne 0x14008fe37
cmp byte [r8], 0x2e
jne 0x14008fe37
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14008fe37
mov al, 0xa
jmp 0x14008fe37
cmp byte [r8], 0x2e
jne 0x14008fe37
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.0x14008fd33.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.0x14008fd33.2
mov ecx, 2
jmp case.0x14008fd33.2
lea r8, [0x140124ea8]
call fcn.1400fd5a0
ud2
lea r8, [0x140124ec0]
call fcn.1400fd5a0
ud2
Function at 0x140096c80
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.1400e8600
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140096cdb
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 0x140096d52
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140002860
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 0x140096d5f
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 0x140096d52
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140002860
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 0x140096d41
jmp 0x140096d52
Function at 0x1400978f0
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.140119bf0
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 + 0x40]
xorps xmm6, xmm6
lea rbx, [rsp + 0x30]
lea r12, [0x1400a7430]
lea r13, [rsp + 0x60]
mov qword [rsp + 0x28], rdi
mov r9d, 0x1000
mov rcx, r15
mov rdx, rdi
mov r8, r14
call fcn.1400a6730
cmp qword [rsp + 0x40], 0
jne 0x140097a76
mov rbp, qword [rsp + 0x48]
test rbp, rbp
je 0x140097a4a
cmp rbp, 0x1000
ja 0x140097a96
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 + 0x30], 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 0x140097a20
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x1400979e0
mov eax, dword [rsp + 0x34]
test rax, rax
jne 0x140097a25
mov eax, dword [rsp + 0x38]
add r15, rax
cmp r15, rbp
je 0x140097a10
jbe 0x1400979a0
jmp 0x140097a82
mov r15, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jmp 0x14009794d
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]
mov rdi, qword [rsp + 0x28]
call fcn.140063090
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 + 0x48]
call fcn.140063090
jmp 0x140097a4a
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov rdx, rbp
call fcn.1400fd6a0
jmp 0x140097aaa
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbp
call fcn.1400fd620
ud2

Function at 0x14009e800
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.1400aef10
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14009e8b5
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.1400a54c0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14009e8b5
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x14009e88a
test rsi, rsi
je 0x14009e886
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140002860
xor esi, esi
jmp 0x14009e8b5
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14009e8b2
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140002860
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret