joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041c90
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140036c28
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140036c28
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140041de0
cmp rax, 0xffffffffffffffff
je 0x140041de0
xor edi, edi
test rbp, rbp
jle 0x140041d8b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400319dc
mov rbx, rax
test rax, rax
jne 0x140041d18
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140041d81
mov edx, 0x8000
mov ecx, r14d
call fcn.14002e2cc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400344c8
cmp eax, 0xffffffff
je 0x140041d61
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140041d28
mov edx, r15d
mov ecx, r14d
call fcn.14002e2cc
jmp 0x140041d81
cmp byte [rsi + 0x38], dil
je 0x140041d78
cmp dword [rsi + 0x34], 5
jne 0x140041d78
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140041d81
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140031a54
jmp 0x140041df4
jns 0x140041df4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140036c28
cmp rax, 0xffffffffffffffff
jne 0x140041dac
cmp byte [rsi + 0x30], dil
je 0x140041df4
mov edi, dword [rsi + 0x2c]
jmp 0x140041df4
mov ecx, r14d
call fcn.14003ab9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140041df4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140041df4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140041ded
mov eax, dword [rsi + 0x2c]
jmp 0x140041df2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140036c28
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140042600
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140042628
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140042628
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400017a0
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x180
mov rdi, rdx
mov rbx, rcx
mov ecx, 2
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
inc rax
cmp rax, 1
ja 0x140001801
call fcn.140001960
mov rsi, rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], edx
test edx, edx
je 0x140001801
test rsi, rsi
je 0x1400017f5
lea rcx, [rsp + 0x50]
call fcn.140001990
mov ecx, 1
xor edx, edx
jmp 0x140001943
lea r14, [rsp + 0x50]
mov r8d, 0x130
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], 0x130
mov rcx, rsi
mov rdx, r14
call qword [sym.imp.kernel32.dll_Process32First]
test eax, eax
je 0x1400018e6
lea r14, [rsp + 0x7c]
lea r15, [rsp + 0x28]
lea r12, [rsp + 0x50]
mov r13, qword [sym.imp.kernel32.dll_Process32Next]
nop dword [rax + rax]
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r8, [rax + 1]
mov rcx, r15
mov rdx, r14
call fcn.140014c60
cmp qword [rsp + 0x28], 0
jne 0x14000188a
cmp qword [rsp + 0x38], rdi
jne 0x14000188a
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400018ab
mov rcx, rsi
mov rdx, r12
call r13
test eax, eax
jne 0x140001850
call fcn.140001960
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], edx
test edx, edx
je 0x140001850
jmp 0x1400018fc
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1400018d9
call fcn.140001960
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], edx
test edx, edx
je 0x1400018d9
test rax, rax
je 0x1400018d9
lea rcx, [rsp + 0x40]
call fcn.140001990
mov eax, dword [rsp + 0x58]
xor ecx, ecx
mov edx, 0x100
jmp 0x140001943
call fcn.140001960
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], edx
test edx, edx
je 0x140001832
test rax, rax
je 0x14000190b
lea rcx, [rsp + 0x28]
call fcn.140001990
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x140001939
call fcn.140001960
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], edx
test edx, edx
je 0x140001939
test rax, rax
je 0x140001939
lea rcx, [rsp + 0x28]
call fcn.140001990
mov ecx, 1
mov edx, 0x100
shl rax, 0x20
or rax, rdx
or rax, rcx
add rsp, 0x180
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140004090
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140004130
jmp 0x14000411f
jae 0x1400041f0
cmp r8, 0x201
jae 0x140004130
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140004188
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000415f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400199c0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400041b1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140004258
mov r8d, r14d
cmp r15, r8
jne 0x140004110
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004285
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000411f
jmp 0x140004130
cmp rsi, r8
jb 0x14000429f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140006040
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140004241
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400016f0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140004229
jmp 0x140004241
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001a3d0
jmp 0x1400042b4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001a820
ud2
Function at 0x14000a1b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001d200]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000a1f4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000a25a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000a291
test eax, eax
js 0x14000a26b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000a284
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140005d80
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400023b0
mov ecx, 7
int 0x29
ud2
Function at 0x140017e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140017e7a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140017e70
cmp r11, r10
ja 0x140017f11
cmp r10, rdx
ja 0x140017f23
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140017e72
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140017e50
jmp 0x140017ee7
ja 0x140017e7a
mov r11, r10
cmp rax, r8
jne 0x140017e22
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140017eeb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140017ec0
mov r8, r10
sub ecx, r9d
jns 0x140017ede
jmp 0x140017eed
cmp r10, rdx
je 0x140017ef9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140017eed
xor al, 1
cmp r8, rdx
jne 0x140017ea0
jmp 0x140017eed
xor eax, eax
jmp 0x140017eed
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14001f06b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001a3d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001a8a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001a820
int3

Function at 0x140019434
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001947e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001947e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001947e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001947e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001947e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140019480
xor al, al
add rsp, 0x28
ret
Function at 0x140b2f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b2f1df
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 0x140b2f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b2f06f
add dl, dl
jne 0x140b2f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b2f0f6
xor eax, eax
add dl, dl
jne 0x140b2f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b2f1ad
add dl, dl
jne 0x140b2f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b2f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b2f07e
mov eax, 1
add dl, dl
jne 0x140b2f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b2f0fb
sub eax, ebx
mov ebx, 1
jne 0x140b2f14c
mov ecx, 1
add dl, dl
jne 0x140b2f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b2f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b2f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b2f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b2f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b2f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b2f15d
cmp eax, 0x7d00
jae 0x140b2f19b
cmp eax, 0x500
jb 0x140b2f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b2f07e
cmp eax, 0x7f
ja 0x140b2f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b2f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b2f1d2
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 0x140b2f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001b0c0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140078ff0
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14010db00]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140033920
test rsi, rsi
je 0x14001b198
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1400ae900
cmp byte [rsp + 0x47], 0
jns 0x14001b13b
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14001b16a
cmp eax, 0x7fff
jae 0x14001b1bd
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14005a4e0
cmp byte [rsp + 0x47], 0
jns 0x14001b17b
mov rcx, qword [rsp + 0x30]
call fcn.140077d00
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.140079050
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x14001b1a6
lea rcx, [rsp + 0x30]
jmp 0x14001b1ab
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x14001b16a
int3

Function at 0x140020a90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x140020ac6
je 0x140020ac5
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x140125810]
movzx r10d, al
movzx r11d, byte [rdx + r8]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x140020aaa
ret
int3
Function at 0x14002b710
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14002b76e
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14002b758
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14002b748
mov qword [rdi], rsi
call fcn.14003ae70
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14003ae70
mov rcx, qword [rdi]
call fcn.1400315d0
mov qword [rdi], 0
jmp 0x14002b736
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003f540
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1400400a0
mov qword [rsi], 0
test rax, rax
je 0x14003f593
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003f5c7
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14003f58b
mov qword [rsi], rbx
call fcn.14003ae70
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.14003af40
lea rcx, [rsi + 0x20]
call fcn.140048ee0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.14003ae70
mov rcx, qword [rsi]
call fcn.1400315d0
mov qword [rsi], 0
jmp 0x14003f579
Function at 0x140049a60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140070b10]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14014ce68]
lea rdx, [0x140070af0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140049af2
cmp dword [0x14014ce70], 0
jne 0x140049aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14014ce74]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140049aee
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140079050
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140049ad6
call fcn.140090250
int3
Function at 0x140056460
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140149158]
mov ecx, dword [0x1401460a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400564cf
lea rcx, [0x140149158]
call fcn.140077d4c
cmp dword [0x140149158], 0xffffffff
jne 0x1400564cf
xorps xmm0, xmm0
movups xmmword [0x140149148], xmm0
movups xmmword [0x140149138], xmm0
movups xmmword [0x140149128], xmm0
lea rcx, [0x140149128]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140149158]
add rsp, 0x28
jmp fcn.140077e00
nop
add rsp, 0x28
ret

Function at 0x140057360
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x1400573a6
mov r14, r12
test r14, r14
je 0x1400574a8
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x140057408
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x1400573f4
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1400ae260
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
jmp 0x140057382
mov rax, r12
sub rax, r15
sar rax, 2
cmp r12, r15
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x1400574ce
lea rcx, [r13*8]
call fcn.140077cc4
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, r12
mov r14, rcx
sub rdx, rbx
je 0x14005746e
lea r14, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x1400574a8
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x140057456
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdx
cmp r12, rbx
je 0x14005748e
add r12, 0xfffffffffffffff8
jne 0x140057481
jmp 0x1400574bb
test r15, r15
je 0x140057382
mov rcx, r15
call fcn.140077d00
mov r14, qword [rsi + 0x10]
jmp 0x140057382
lea rcx, [0x140110299]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400bde54
lea rcx, [0x140110299]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1400bde54
call fcn.1400bd5bd
int3
Function at 0x140057a00
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rdi, qword [rsp + 0xd0]
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x5f]
mov byte [rbx], 0xaa
mov r13, qword [rcx]
lea rdx, str.ReadValue
lea r8, str....._basewin_registry.cc
lea rbp, [rsp + 0x38]
mov rcx, rbp
mov r9d, 0x1a6
call fcn.14003ae50
mov rcx, rbx
mov rdx, rbp
mov r8, r13
mov r9d, 1
call fcn.140067080
mov rcx, qword [r12]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, rbx
call fcn.14004ba00
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079050
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140057ac0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1038
call fcn.140078ff0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea r14, [rsp + 0x830]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400ae900
lea rax, [rsp + 0x2c]
mov dword [rax], 1
lea r9, [rsp + 0x28]
mov dword [r9], 0x800
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.140057a00
test eax, eax
jne 0x140057b6d
mov eax, dword [rsp + 0x2c]
cmp eax, 1
jne 0x140057b71
lea rdx, [rsp + 0x830]
mov rcx, rsi
call fcn.140055b22
xor edi, edi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140079050
mov eax, edi
add rsp, 0x1038
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140057b4e
mov edi, 0x3f4
cmp eax, 2
jne 0x140057b4e
lea rdi, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400ae900
lea rcx, [rsp + 0x830]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x28], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x140057b4e
lea rdx, [rsp + 0x30]
jmp 0x140057b44
Function at 0x140058390
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x490], rax
movaps xmm0, xmmword [0x14010db00]
lea r14, [rsp + 0x30]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x140115ffa]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x280]
mov rcx, r15
mov r9d, 0x29e
call fcn.14003ae50
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14003f6a0
lea r14, [rsp + 0x280]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1400ae900
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14005842f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.140067d40
mov rcx, r14
call fcn.1400217c0
lea r14, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1400ae900
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140058466
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.140067d40
mov rcx, r14
call fcn.1400217c0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140058488
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140058494
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x140058517
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140067eb0
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400584c7
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400584d0
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test rsi, rsi
je 0x1400584eb
test eax, eax
je 0x14005851c
lea rcx, [rsp + 0x30]
call fcn.14003f720
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140079050
mov eax, edi
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dil, 1
jmp 0x1400584eb
cmp ebp, 0xfffffffc
jne 0x140058528
call fcn.1400ecc60
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x1400584eb