joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017dda0
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401fb950
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14017de6d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop word cs:[rax + rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14020ccb4
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14017de4e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14017de40
test rsi, rsi
je 0x14020ccb4
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14017de00
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14017de9c
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14017deb0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14017df6d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14020ccba
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14017df4e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14017df40
test rsi, rsi
je 0x14020ccba
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14017df00
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14017dfa0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor edx, edx
movzx eax, byte [rcx]
mov word [rsp + 0x30], dx
mov rbp, rcx
lea r15, [rsp + 0x30]
test al, al
je 0x14017e05d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop word cs:[rax + rax]
nop
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14020ccc0
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14017e03e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14017e030
test rsi, rsi
je 0x14020ccc0
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14017dff0
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401b3ea0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14017dda0
test rax, rax
je 0x1401b3fb0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x30]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x30], cx
mov r13, rax
lea rbp, [rsp + 0x2a]
mov eax, 0x4e
lea rdi, [rsp + 0x2c]
nop word cs:[rax + rax]
nop dword [rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x2a], al
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14020cd50
cmp word [r15], 0
movzx edx, word [rsp + 0x2c]
mov rax, r15
je 0x1401b3f5e
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1401b3f50
test rbx, rbx
je 0x14020cd50
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1401b3f10
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, r13
mov rcx, rax
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401b3d20
mov rax, qword [0x140247ba8]
lea rsi, [0x140247ba8]
test bl, bl
je 0x1401b3fd0
mov rax, qword [0x140247bb0]
lea rsi, [0x140247bb0]
test rax, rax
je 0x1401b3fe9
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [0x140247de2], 0
je 0x1401b4019
mov rdx, 0xffffffffffffffff
lea rcx, [0x140247be0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1401b4023
mov edx, dword [rax]
add edx, 1
je 0x1401b3fd5
mov dword [rax], edx
jmp 0x1401b3fd5
movzx ecx, bl
call fcn.14017e710
jmp 0x1401b3ff2
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1401b4030
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x140247ba0]
mov rsi, rcx
test rbx, rbx
je 0x1401b40b0
mov rax, qword [0x140226d70]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1401b40a0
mov rdx, qword [0x140247de8]
test rdx, rdx
je 0x1401b41a0
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x1401b4081
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14017dda0
test rax, rax
je 0x1401b41c0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14020cd56
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1401b414e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1401b4140
test rbx, rbx
je 0x14020cd56
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1401b4100
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.1401b3d20
mov rbx, rax
mov qword [0x140247ba0], rbx
jmp 0x1401b4052
lea rcx, [0x140222f42]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x140247de8], rax
mov rdx, rax
jmp 0x1401b4072
mov rbx, qword [0x140247bb0]
test rbx, rbx
jne 0x1401b4191
cmp byte [0x140247de2], 0
je 0x1401b4203
mov rdx, 0xffffffffffffffff
lea rcx, [0x140247be0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x140247bb0], rax
mov rbx, rax
test rax, rax
je 0x1401b420f
mov eax, dword [rax]
add eax, 1
je 0x1401b4191
mov dword [rbx], eax
jmp 0x1401b4191
mov ecx, 1
call fcn.14017e710
jmp 0x1401b41d5
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x1401f7ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140247b89], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1401f8098
lea rdx, [0x14022281a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401f8100
mov rbx, qword [0x140247a20]
jmp 0x1401f8035
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1401f8030
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1401f8087
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1401eda30
mov r8, rax
cmp rdi, rbx
jne 0x1401f8070
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140247a20], rax
mov ebx, dword [rax]
mov qword [0x140247a20], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140247a20], rdx
call fcn.1401f70c0
cmp eax, ebx
jne 0x1401f8168
mov byte [0x140247b89], 1
jmp 0x1401f8010
cmp byte [0x140247b88], 0
jne 0x1401f8027
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x140248748], rax
call rbx
mov qword [0x140248740], rax
call rbx
mov qword [0x140248738], rax
call rbx
mov qword [0x140248730], rax
call rbx
mov qword [0x140248728], rax
call rbx
mov qword [0x140248720], rax
call rbx
mov qword [0x140248718], rax
call rbx
mov byte [0x140247b88], 1
mov qword [0x140248710], rax
jmp 0x1401f8027
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1401fa630
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14020bbf0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14020bbf0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1401fb302
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140248c08]
test eax, eax
je 0x1401fb39a
lea rax, [0x140248be0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140248c10]
mov qword [rbp - 8], rax
jmp 0x1401fb37e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401fb372
cmp qword [rbp - 0x10], 0
je 0x1401fb372
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401fb338
lea rax, [0x140248be0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401fb39b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401fb4a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401fb4c8
mov eax, 0
jmp 0x1401fb516
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 0x1401fb4f1
mov eax, 0
jmp 0x1401fb516
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401fb511
mov eax, 0
jmp 0x1401fb516
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401fb51c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401fb59a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401fb591
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401fb591
mov rax, qword [rbp - 8]
jmp 0x1401fb5af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401fb564
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140d92058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140d921df
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 0x140d92089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d9206f
add dl, dl
jne 0x140d92096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d920f6
xor eax, eax
add dl, dl
jne 0x140d920a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d921ad
add dl, dl
jne 0x140d920b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d920c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d920d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d920dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d920ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d9207e
mov eax, 1
add dl, dl
jne 0x140d92106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d92113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d920fb
sub eax, ebx
mov ebx, 1
jne 0x140d9214c
mov ecx, 1
add dl, dl
jne 0x140d9212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d9213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d92123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d9207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d92168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d92175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d9215d
cmp eax, 0x7d00
jae 0x140d9219b
cmp eax, 0x500
jb 0x140d92196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d9207e
cmp eax, 0x7f
ja 0x140d9219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d9207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d921d2
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 0x140d9207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1403f0cb0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1403f0cc0]
mov dword [rax], 1
mov rax, qword [0x1403f0cd0]
mov dword [rax], 1
mov rax, qword [0x1403f0c30]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1403f0ca0]
mov dword [0x14046600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [str.pbF_]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [str.0bF_]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1403f0ba0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x14000b3e0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
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 sym.__rand_core::os::OsRng_as_rand_core::RngCore_::try_fill_bytes::hf7d18ee0a30a4ad3
test rax, rax
je 0x14000b442
mov rbx, rax
mov r14, rdx
mov rax, qword [rdx]
test rax, rax
je 0x14000b42b
mov rcx, rbx
call rax
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x14000b49a
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rust_dealloc
jmp 0x14000b49a
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x70]
lea r8, [0x140320310]
lea rdx, [rsp + 0x40]
mov r9d, 8
call sym.rand_chacha::guts::init_chacha::h49bd2942290d7b8c
mov rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmm2, xmmword [rsp + 0x90]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi + 0x20], xmm2
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, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
jmp sym.rand_chacha::guts::refill_wide::h931e6bddc57e5b20
Function at 0x140015020
Capabilities:
Delete registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
add r8, rdx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], r8
mov word [rsp + 0x30], 0
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
call sym._ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17he4a8c42a64
mov rcx, qword [rsi]
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
call sub.advapi32.dll_RegDeleteValueW
mov esi, eax
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140015081
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call sym.__rust_dealloc
mov rcx, rsi
shl rcx, 0x20
or rcx, 2
xor eax, eax
test esi, esi
cmovne rax, rcx
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x140015240
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x38]
mov rdx, r9
call sym.__alloc::string::String_as_winreg::types::ToRegValue_::to_reg_value::h2dad3f30237d5376
mov rdi, qword [rdi]
add rsi, rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x58]
call sym._ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17he4a8c42a64
movzx r9d, byte [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x40]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1400152d9
add rdx, rdx
mov r8d, 2
mov rcx, rbx
call sym.__rust_dealloc
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400152f1
mov r8d, 1
mov rcx, rsi
call sym.__rust_dealloc
mov rcx, rdi
shl rcx, 0x20
or rcx, 2
xor eax, eax
test edi, edi
cmovne rax, rcx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
mov rcx, qword [0x14031e038]
xor edx, edx
jmp sym.std::sys::thread_local::os::Storage_T_::get::h8b63339a45beb184
Function at 0x140018700
Capabilities:
Accept command line arguments
Create process on windows
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x300
lea rsi, [rsp + 0xf8]
mov r8d, 0x208
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call sub.kernel32.dll_GetModuleFileNameW
test eax, eax
je 0x1400187e3
mov ecx, eax
cmp eax, 0x105
jae 0x1400187ee
lea rax, [rcx + rcx]
neg rax
lea rcx, [rsp + rcx*2]
add rcx, 0xf6
lea r11, [0x1403223f8]
xor edx, edx
lea r8, [0x1403223e5]
mov r9d, 1
nop
mov r10, r8
cmp r11, r8
je 0x140018781
lea r10, [r11 - 1]
movzx ebx, byte [r11 - 1]
cmp bl, byte [rcx + rdx]
sete sil
lea edi, [rsi + 2]
add sil, sil
add sil, 2
cmp r11, r8
movzx edi, dil
cmove edi, r9d
movzx r11d, sil
cmove r11d, r9d
cmp rdx, 0xffffffffffffffdc
cmove r11d, edi
cmp r11b, 4
jne 0x1400187cd
add rdx, 0xfffffffffffffffe
mov r11, r10
cmp rax, rdx
jne 0x140018770
lea rax, [0x1403223e5]
cmp r10, rax
jne 0x1400187e3
jmp 0x140018801
lea rax, [0x1403223e5]
cmp r10, rax
jne 0x1400187e3
add r11b, 0xfd
cmp r11b, 2
jb 0x140018801
add rsp, 0x300
pop rbx
pop rdi
pop rsi
ret
lea r8, [0x140322478]
mov edx, 0x104
call sym.core::slice::index::slice_end_index_len_fail::hdaa9bbd2fcad4cbb
ud2
mov dword [rsp + 0x5c], 0
call sub.kernel32.dll_GetCommandLineW
lea rdx, [rsp + 0x5c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x140018937
mov rsi, rax
cmp dword [rsp + 0x5c], 3
jne 0x14001891d
mov rcx, qword [rsi + 8]
call sub.msvcrt.dll__wtoi64
mov rdi, qword [rsi + 0x10]
mov rcx, rax
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x14001892f
mov rcx, rdi
call sub.kernel32.dll_DeleteFileW
mov edi, eax
mov rcx, rsi
call sub.kernel32.dll_LocalFree
test edi, edi
je 0x140018937
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xf0], 0
movups xmm1, xmmword [str.cmd.exe__c_exit]
movaps xmmword [rsp + 0x80], xmm1
mov dword [rsp + 0x90], 0x68
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x80]
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_CreateProcessA
xor ecx, ecx
call sub.kernel32.dll_ExitProcess
mov rcx, rsi
call sub.kernel32.dll_LocalFree
mov ecx, 1
call sub.kernel32.dll_ExitProcess
mov rcx, rsi
call sub.kernel32.dll_LocalFree
mov ecx, 1
call sub.kernel32.dll_ExitProcess