joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400017d0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rdx
lea rdx, [0x14001612c]
mov rbx, rcx
call fcn.1400046d0
mov rbp, rax
test rax, rax
je 0x140001900
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call fcn.14000edb0
test eax, eax
js 0x1400018d8
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x140001916
cmp byte [r12 + 0x10], 1
je 0x1400018a8
mov rdi, rax
test rsi, rsi
jne 0x140001850
jmp 0x1400018bd
add rdi, rbx
sub rsi, rbx
je 0x1400018bd
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001848
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fread
call fcn.140002a60
mov rcx, r13
call sub.msvcrt.dll_free
xor r13d, r13d
jmp 0x1400018bd
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001390
test eax, eax
jne 0x140001895
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov edx, dword [rax]
lea rcx, str.fseek
call fcn.140002a60
jmp 0x14000189d
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002950
jmp 0x1400018c5
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rsp + 0x20], esi
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
mov edx, dword [rax]
lea rcx, str.malloc
call fcn.140002a60
jmp 0x14000189d
Function at 0x140001940
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [rdx + 0x11], 0x6e
mov rbx, rcx
mov r13, rdx
mov rsi, r8
je 0x140001a68
lea rdx, [0x140016254]
mov rcx, r8
call fcn.1400046d0
mov r12, rax
test rax, rax
je 0x140001b70
lea rdx, [0x14001612c]
mov rcx, rbx
call fcn.1400046d0
mov rbp, rax
test rax, rax
je 0x140001af8
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx + 0x1000]
mov rcx, rax
call fcn.14000edb0
test eax, eax
js 0x140001b48
cmp byte [r13 + 0x10], 1
je 0x140001aa0
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
je 0x140001b99
mov esi, dword [r13 + 0xc]
test rsi, rsi
jne 0x140001a0e
jmp 0x140001b10
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001b20
sub rsi, rbx
je 0x140001b10
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x1400019e8
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fread
call fcn.140002a60
mov ebx, 0xffffffff
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x140001ab3
call fcn.1400017d0
mov rdi, rax
test rax, rax
je 0x140001ad2
mov rcx, rax
mov rdx, rsi
call fcn.140004770
mov rcx, rdi
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
js 0x140001ae0
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, r13
mov rcx, rbp
call fcn.140001390
mov ebx, eax
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ebx, 0xffffffff
nop word [rax + rax]
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002950
jmp 0x140001a8e
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002950
jmp 0x140001abb
xor ebx, ebx
jmp 0x140001a57
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fwrite
call fcn.140002a60
jmp 0x140001a52
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov edx, dword [rax]
lea rcx, str.fseek
call fcn.140002a60
or ebx, 0xffffffff
jmp 0x140001ab3
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r13 + 0x12]
mov ebx, 0xffffffff
lea r8, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov edx, dword [rax]
lea rcx, str.fopen
call fcn.140002a60
jmp 0x140001a8e
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
mov edx, dword [rax]
lea rcx, str.malloc
call fcn.140002a60
jmp 0x140001b67
Function at 0x1400079f0
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e930
sub rsp, rax
mov rsi, r8
mov r14, rcx
mov rcx, rdx
mov rbx, rdx
call sub.msvcrt.dll_strlen
mov rcx, rsi
mov rdi, rax
call sub.msvcrt.dll_strlen
lea rax, [rdi + rax + 1]
cmp rax, 0xfff
ja 0x140007af1
mov dword [rsp + 0x20], 0x5c
lea rdi, [rsp + 0x30]
mov r9, rbx
lea r8, str._s_c
mov edx, 0x1000
mov rcx, rdi
mov r12d, 0x1000
lea r13, [rsp + 0x1030]
call fcn.1400079d0
mov edx, 0x5c
mov rcx, rsi
movsxd rbp, eax
call sub.msvcrt.dll_strchr
sub r12, rbp
mov r15, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add rbp, rdi
mov rbx, rax
test rax, rax
jne 0x140007aa6
jmp 0x140007b00
lea rcx, [rbx + 1]
mov edx, 0x5c
call sub.msvcrt.dll_strchr
mov rbx, rax
test rax, rax
je 0x140007b00
mov qword [rsp + 0x20], rsi
mov r9d, ebx
mov rcx, rbp
mov rdx, r12
sub r9d, esi
lea r8, [0x140017e45]
call fcn.1400079d0
mov rcx, rdi
call fcn.140004690
test eax, eax
jne 0x140007a90
mov rdx, r13
mov rcx, rdi
mov r8d, 0x1000
call fcn.140008f90
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call r15
test eax, eax
jne 0x140007a90
mov eax, 0xffffffff
jmp 0x140007b02
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140007b20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000e930
sub rsp, rax
mov rsi, rdx
lea rdx, [0x140017e4a]
call fcn.1400046d0
mov rbx, rax
test rax, rax
je 0x140007c0e
mov rcx, rsi
lea rdx, [0x140017e4d]
call fcn.1400046d0
mov rsi, rax
test rax, rax
je 0x140007c06
lea rdi, [rsp + 0x20]
jmp 0x140007baf
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
je 0x140007bf0
mov r9, rsi
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140007be0
mov rcx, rsi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140007be0
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
je 0x140007b70
xor edi, edi
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, edi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call sub.msvcrt.dll_clearerr
mov edi, 0xffffffff
jmp 0x140007bbd
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140007bbb
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x140007be8
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov edi, 0xffffffff
jmp 0x140007bcd
Function at 0x140007c20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140007d10
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.14000edb0
test eax, eax
js 0x140007d10
mov rcx, r12
call fcn.14000ee40
movsxd rbx, eax
cmp rbx, rdi
jb 0x140007d10
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140007d10
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000edb0
test eax, eax
js 0x140007d10
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140007d10
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140007cfa
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140007d30
mov rbx, r15
test rbx, rbx
jne 0x140007ce0
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007c89
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140007d12

Function at 0x140007d40
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2288
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e930
sub rsp, rax
mov r15, qword [sym.imp.msvcrt.dll__snwprintf]
lea r8, str._s
mov edx, 0x1000
lea r13, [rsp + 0x280]
mov qword [rsp + 0x22d0], rcx
mov r9, rcx
mov rcx, r13
call r15
cmp eax, 0xfff
jg 0x140007ea8
lea rsi, [rsp + 0x30]
lea ebx, [rax - 1]
mov r12d, 0x1000
mov rcx, r13
mov rdx, rsi
sub r12d, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140007ea8
movsxd rax, ebx
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [rsp + 0x5c]
lea rbp, [0x140017e6a]
lea rax, [r13 + rax*2]
mov qword [rsp + 0x20], rax
movsxd rax, r12d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140007e40
lea rdx, [0x140017e6e]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140007e40
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
lea r8, [0x140017e74]
call r15
cmp eax, r12d
jge 0x140007e40
mov eax, dword [rsp + 0x30]
mov rcx, r13
test al, 0x10
je 0x140007e88
test ah, 4
je 0x140007e3a
cmp dword [rsp + 0x54], 0xa000000c
je 0x140007ea0
call fcn.140007d40
nop
mov rdx, rsi
mov rcx, r14
call rdi
test eax, eax
jne 0x140007de2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x22d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r14
call rdi
test eax, eax
jne 0x140007de2
jmp 0x140007e4c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007e40
mov eax, 0xffffffff
jmp 0x140007e6e
Function at 0x1400080b0
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x4048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e930
sub rsp, rax
mov rbp, rcx
mov dword [rsp + 0x3c], 0
lea rbx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140008100
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
jne 0x140008120
xor r14d, r14d
mov eax, r14d
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, r12d
mov edx, 1
call sub.msvcrt.dll_calloc
mov rdi, rax
test rax, rax
je 0x140008100
mov r9, rbx
mov r8d, r12d
mov rdx, rax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x140008160
xor r14d, r14d
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x140008103
lea r14, [rsp + 0x2040]
lea rcx, [rbp + 0x2022]
mov r8d, 0x1000
mov rdx, r14
call fcn.140008f90
test rax, rax
je 0x14000814a
mov rcx, r14
call sub.msvcrt.dll_wcslen
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x3c]
shr eax, 3
je 0x14000814a
mov rbx, rdi
mov r15, rdi
lea rbp, [rsp + 0x40]
xor r13d, r13d
lea r12d, [rax*8]
add r12, rdi
nop word cs:[rax + rax]
nop dword [rax]
mov rdx, qword [r15]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x1400081fb
mov r8, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400081fb
mov rdx, qword [r15]
movsxd rax, r13d
add r13d, 1
mov qword [rdi + rax*8], rdx
add r15, 8
cmp r15, r12
jne 0x1400081c0
test r13d, r13d
je 0x14000814a
movsxd r13, r13d
xor r14d, r14d
lea r15, [rdi + r13*8]
mov r13, qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000822d
add rbx, 8
cmp rbx, r15
je 0x14000814d
mov rdx, qword [rbx]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008220
mov r12d, 0x20
jmp 0x140008256
sub r12d, 1
je 0x140008220
mov rcx, qword [rbx]
call r13
test eax, eax
jne 0x140008250
add r14d, 1
jmp 0x140008220

Function at 0x1400082d0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x4028
push rbx
call fcn.14000e930
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.140008f90
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x140008348
lea rsi, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x140008348
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140008e90
add rsp, 0x4028
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x4028
pop rbx
pop rsi
ret
Function at 0x14000e4e0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140022400]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400223e0]
test rbx, rbx
je 0x14000e52c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x14000e526
test eax, eax
jne 0x14000e526
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000e4fe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000e6e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000e703
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000e703
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000e704
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000e73e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x14000e735
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000e740
inc r8d
add rax, 0x28
jmp 0x14000e71c
xor eax, eax
ret

Function at 0x14000e7b1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14001c3c0]
mov r8, rcx
mov rcx, r9
call fcn.14000e6e0
test eax, eax
je 0x14000e7dd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.14000e704
xor eax, eax
add rsp, 0x28
ret
Function at 0x140010de0
Capabilities:
Delete file

Disassembly:
jmp 0x1401bcf20
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.1401c5690
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1401bcf80
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.1401c7250
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x1401bcf8c
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x1401bcfb6
test rdi, rdi
je 0x1401bcfe2
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001bb80
xor eax, eax
jmp 0x1401bcf83
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x1401bcf83
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14001bb80
jmp 0x1401bcf80
xor eax, eax
jmp 0x1401bcf83
Function at 0x140020130
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rax, rdx
mov rdi, rcx
lea rdx, [rbp - 4]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x140020232
mov rsi, rax
mov qword [rbp - 0x28], rdi
movsxd rax, dword [rbp - 4]
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 8
mov qword [rbp - 0x10], 0
lea r13, [rsi + rax*8]
lea rbx, [rbp - 0x40]
lea r14, [rbp - 0x58]
lea r15, [rbp - 0x20]
mov rdi, rsi
jmp 0x1400201d4
add rdi, 8
mov rax, qword [rbp - 0x18]
lea rcx, [r12 + r12*2]
mov rdx, qword [rbp - 0x30]
mov qword [rax + rcx*8 + 0x10], rdx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax + rcx*8], xmm0
inc r12
mov qword [rbp - 0x10], r12
cmp rdi, r13
je 0x140020215
mov r12, qword [rdi]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rax
mov word [rbp - 0x48], 0
mov rcx, rbx
mov rdx, r14
call fcn.14002c790
mov r12, qword [rbp - 0x10]
cmp r12, qword [rbp - 0x20]
jne 0x1400201b0
mov rcx, r15
call fcn.14002b100
jmp 0x1400201b0
mov rcx, rsi
call sub.kernel32.dll_LocalFree
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rcx], xmm0
jmp 0x140020249
mov qword [rdi], 0
mov qword [rdi + 8], 8
mov qword [rdi + 0x10], 0
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140022bc0
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 0x20], 0
cmp qword [rdx + 0x10], 0
je 0x140022cbb
mov qword [rbp - 0x10], rdx
lea rcx, [0x1401f1c22]
call sub.oleaut32.dll_SysAllocString
mov rdi, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8, rbx
mov r9d, 0x30
call rax
mov r14d, eax
mov rcx, rdi
call sub.oleaut32.dll_SysFreeString
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
test r14d, r14d
mov rdx, qword [rbp - 0x10]
js 0x140022cbb
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
cmp qword [rdx + 0x20], 0
je 0x140022c7f
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140022c7f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 0x20], 1
mov rax, qword [rbp - 0x18]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx + 0x30]
mov qword [rsi + 0x30], rax
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, qword [rcx + 0x20]
mov qword [rsi + 0x20], rax
mov rax, qword [rcx + 0x28]
mov qword [rsi + 0x28], rax
jmp 0x140022cca
mov qword [rsi], 2
mov rcx, rdx
call fcn.140021a40
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x1400234b0
Capabilities:
Get local ipv4 addresses

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp - 4], 0x3c00
mov dword [rbp - 8], 0
xor edi, edi
lea rbx, [rbp - 4]
cmp edi, 2
ja 0x1400235b6
nop dword [rax + rax]
mov ecx, dword [rbp - 4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov qword [rbp - 0x10], rax
je 0x140023557
mov qword [rsp + 0x20], rbx
xor ecx, ecx
mov edx, 0xe
xor r8d, r8d
mov r9, rax
call sub.iphlpapi.dll_GetAdaptersAddresses
mov dword [rbp - 8], eax
cmp eax, 0x6f
jne 0x140023535
inc edi
mov rcx, qword [rbp - 0x10]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
cmp edi, 2
jbe 0x1400234f0
jmp 0x1400235b6
test eax, eax
mov rcx, qword [rbp - 0x10]
jne 0x1400235b1
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rcx
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140023600
movzx eax, byte [0x1402eff41]
mov ecx, 0x32
mov edx, 1
call fcn.14001bb70
test rax, rax
je 0x14002360f
movups xmm0, xmmword [0x1401f1dc8]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x1401f1db8]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.failed_to_allocate_memory_for_IP_ADAPTER_ADDRESSESGetAdaptersAddresses___failed_with_code]
movups xmmword [rax], xmm0
mov word [rax + 0x30], 0x5345
mov qword [rsi], 0x32
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0x32
jmp 0x140023600
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea rax, [rbp - 8]
mov qword [rbp - 0x20], rax
lea rax, [0x1401dd1f0]
mov qword [rbp - 0x18], rax
lea rax, [0x1401f1e08]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x30], 0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.1401cfe50
mov rax, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov ecx, 1
mov edx, 0x32
call fcn.1401edb80
ud2
Function at 0x140027360
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400273a2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x1400273aa
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400273bb
jmp 0x1400273d2
xor r10d, r10d
jmp 0x14002745d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400273d2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400273e9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140027409
add r11, r8
jmp 0x14002753b
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400274d2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140027480
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1400274f0
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140027502
jmp 0x14002751d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14002751d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140027537
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret