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

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400ba02c
xor eax, eax
jmp 0x1400ba0ef
mov rbp, rbx
cmp word [rax], si
je 0x1400ba051
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400ba038
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400ba034
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400b9f1c
movsxd r14, eax
test eax, eax
jne 0x1400ba08f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400ba025
mov rcx, r14
call fcn.1400b594c
mov rdi, rax
test rax, rax
jne 0x1400ba0a8
xor ecx, ecx
call fcn.1400b2764
jmp 0x1400ba084
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400b9f1c
test eax, eax
jne 0x1400ba0d9
mov rcx, rdi
call fcn.1400b2764
jmp 0x1400ba0e3
xor ecx, ecx
call fcn.1400b2764
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400ba10c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ba193
mov rsi, rbx
cmp word [rax], bp
je 0x1400ba152
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ba13c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ba138
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b594c
mov rdi, rax
test rax, rax
je 0x1400ba180
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140098a10
mov rbp, rdi
xor ecx, ecx
call fcn.1400b2764
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400be7f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400be806
mov al, 1
jmp 0x1400be866
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400be817
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400be864
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400baa4c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400be864
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400be864
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400be864
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400be866
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400c21d0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a0f64
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400c225a
cmp byte [rbp - 0x21], r15b
je 0x1400c2255
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400c2290
call fcn.1400b3858
test eax, eax
jne 0x1400c227c
cmp byte [rbp - 0x21], r15b
je 0x1400c2274
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400c2290
cmp byte [rbp - 0x21], r15b
je 0x1400c228d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400a9c64
test eax, eax
jne 0x1400c2330
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a0f64
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400c22cf
cmp byte [rbp - 0x21], r15b
je 0x1400c2304
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400c2304
call fcn.1400b3858
test eax, eax
jne 0x1400c22f0
cmp byte [rbp - 0x21], r15b
je 0x1400c22e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400c2304
cmp byte [rbp - 0x21], r15b
je 0x1400c2301
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400a9c64
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400c2330
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400c2333
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400c2341
mov rcx, rdi
call fcn.1400b2764
cmp byte [rbp + 0x3f], r15b
je 0x1400c2350
mov rcx, qword [rbp + 0x27]
call fcn.1400b2764
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400c31cc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14010b990]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400c3216
call fcn.1400a8d18
mov dword [rax], 0xf
call fcn.1400a8cf8
mov dword [rax], 0xd
call fcn.1400b5314
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140096fd0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400c3221
lea eax, [rbx + 1]
jmp 0x1400c3203
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400c3201
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400c3203
Function at 0x14000167c
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400016d3
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call fcn.140001a0a
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400016c3
mov qword [rsi], rdi
call fcn.140027a00
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.14003c070
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14000a7d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x1400f05e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r14, [rsp + 0x38]
lea r12, [rsp + 0x28]
lea r15, [rsp + 0x30]
mov ebp, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x28]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.14009e624
cmp rax, rbx
jne 0x14000a857
cmp edi, 1
je 0x14000a804
cmp edi, 2
je 0x14000a857
mov rcx, qword [rsi + 0x40]
call fcn.14009dff0
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140089390
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14000a880
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x14000a8b5
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14009e624
xor ebx, ebx
test rsi, rsi
jle 0x14000a8da
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14000a8da
inc rbx
cmp rsi, rbx
jne 0x14000a8bc
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000a8f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rax, qword [0x1400f05e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp edx, 0xffffffff
je 0x14000a94d
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x14000a95c
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.14009e624
mov esi, 0xffffffff
cmp rax, 1
jne 0x14000aa0c
xor esi, esi
cmp r15d, 0xffffffff
cmovne esi, r15d
jmp 0x14000aa0c
lea rbx, [rsp + 0x58]
lea r12, [rsp + 0x48]
mov qword [r12], rbx
lea rsi, [rsp + 0x57]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x14000aa07
mov ebp, eax
cmp eax, 3
je 0x14000a9e6
cmp ebp, 1
ja 0x14000aa07
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.14009e624
cmp rax, rsi
jne 0x14000aa07
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x14000a979
jmp 0x14000a94d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.14009e624
cmp rax, 1
je 0x14000a94d
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140089390
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 0x14000aa70
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x14000aaa5
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14009e624
xor ebx, ebx
test rsi, rsi
jle 0x14000aacb
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x14000aacb
inc rbx
cmp rsi, rbx
jne 0x14000aaac
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000aae0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov esi, edx
mov rax, qword [0x1400f05e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp dx, 0xffff
je 0x14000ab3c
mov rdi, rcx
mov word [rsp + 0x56], si
cmp byte [rcx + 0x58], 0
je 0x14000ab4c
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.14009e624
mov di, 0xffff
cmp rax, 1
jne 0x14000abfb
xor eax, eax
cmp si, 0xffff
cmove esi, eax
mov edi, esi
jmp 0x14000abfb
lea r15, [rsp + 0x58]
lea r12, [rsp + 0x48]
mov qword [r12], r15
lea rbx, [rsp + 0x56]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r8, rbx
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rbx
je 0x14000abf7
mov ebp, eax
cmp eax, 3
je 0x14000abd6
cmp ebp, 1
ja 0x14000abf7
mov rbx, qword [rsp + 0x48]
sub rbx, r15
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.14009e624
cmp rax, rbx
jne 0x14000abf7
mov rbx, qword [rsp + 0x40]
cmp ebp, 1
je 0x14000ab69
jmp 0x14000ab3c
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rbx
call fcn.14009e624
cmp rax, 1
je 0x14000ab3c
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140089390
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140023930
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1400f05e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1400f2bf0], 0
je 0x140023955
xor esi, esi
jmp 0x1400239e5
mov ecx, 0x38
call fcn.140088fc0
mov rsi, rax
mov ecx, 0x18
call fcn.140088fc0
mov qword [rsi], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rsi + 8], rcx
lea rax, [rsi + 0x20]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x30], 1
mov qword [0x1400f2bf0], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400239ce
cmp word [rax], 0
je 0x1400239ce
xor ecx, ecx
nop dword [rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400239c0
jmp 0x1400239d0
xor ecx, ecx
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140023a00
mov sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140089390
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x140023a00
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rbp, rcx
mov rax, qword [0x1400f05e8]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 3
call fcn.140030080
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x140023c3c
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140023aa9
mov rdi, rax
lea rdx, [0x1400b8f5e]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140023abc
mov rbx, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call rax
mov r15, rax
jmp 0x140023abf
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
jmp 0x140023ac8
xor r15d, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movsxd r13, dword [rsp + 0x4c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
test r13, r13
je 0x140023bdf
mov qword [rsp + 0x28], rbp
test r13d, r13d
js 0x140023c6f
shl r13, 3
lea rsi, [r13*2]
add rsi, r13
mov rcx, rsi
call fcn.140088fc0
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
add rsi, rax
mov qword [rsp + 0x40], rsi
xor r14d, r14d
xorps xmm6, xmm6
jmp 0x140023b60
mov byte [rbx + 0x17], dil
mov rsi, rbx
test rdi, rdi
je 0x140023b4d
mov r8, rdi
add r8, rdi
mov rcx, rsi
mov rdx, r12
call fcn.14008bc30
mov word [rsi + rdi*2], 0
add rbx, 0x18
add r14, 8
cmp r13, r14
je 0x140023bd5
mov r12, qword [r15 + r14]
movups xmmword [rbx], xmm6
mov qword [rbx + 0x10], 0
mov rcx, r12
call fcn.1400a3fc0
mov rdi, rax
movabs rax, 0x7fffffffffffffef
cmp rdi, rax
ja 0x140023c62
cmp rdi, 0xb
jb 0x140023b30
lea rbp, [rdi + 8]
and rbp, 0xfffffffffffffff8
js 0x140023c6a
mov rcx, rbp
add rcx, rbp
lea rcx, [rbp + rbp]
call fcn.140088fc0
mov rsi, rax
mov qword [rbx], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, rbp
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
jmp 0x140023b3c
mov qword [rsp + 0x38], rbx
mov rbp, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.140023770
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x140023c3c
mov rax, qword [rsp + 0x38]
cmp rax, rsi
jne 0x140023c18
mov rcx, rsi
jmp 0x140023c32
mov rax, rdi
cmp rsi, rdi
je 0x140023c2d
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x140023c10
mov rcx, qword [rax - 0x18]
call fcn.14008901c
jmp 0x140023c10
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.14008901c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140089390
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call fcn.14002090c
call fcn.140099204
lea rcx, [rsp + 0x30]
call fcn.140022414
int3
Function at 0x140027a10
Capabilities:
Delete file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r14, rcx
mov rax, qword [0x1400f05e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.140023c80
mov rdi, rax
lea rbx, [0x1400bb551]
mov rcx, rax
mov rdx, rbx
call fcn.1400241c0
test al, al
jne 0x140027a65
lea rdx, str.vmodule
mov rcx, rdi
call fcn.1400241c0
test al, al
je 0x140027b0a
cmp qword [0x1400f2c10], 0
jne 0x140027be5
mov rax, qword [0x1400f2c18]
mov qword [0x1400f2c10], rax
mov ecx, 0x20
call fcn.140088fc0
mov rsi, rax
lea rcx, str.vmodule
mov qword [rsp + 0x50], rcx
call fcn.1400a3170
mov qword [rsp + 0x58], rax
lea r15, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, rdi
mov rdx, r15
call fcn.140024230
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.1400a3170
mov qword [rsp + 0x30], rax
lea rbx, [rsp + 0x38]
lea r8, [rsp + 0x28]
mov rcx, rdi
mov rdx, rbx
call fcn.140024230
lea r9, [0x1400f2c20]
mov rcx, rsi
mov rdx, rbx
mov r8, r15
call fcn.1400410c0
mov qword [0x1400f2c18], rsi
cmp byte [rsp + 0x4f], 0
js 0x140027b4f
cmp byte [rsp + 0x77], 0
js 0x140027b60
mov eax, dword [r14]
mov dword [0x1400ef2a8], eax
mov bl, 1
test al, 1
je 0x140027bc7
mov rcx, qword [0x1400f2c48]
test rcx, rcx
je 0x140027b6c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f2c48], 0
mov rcx, qword [0x1400f2c28]
test rcx, rcx
jne 0x140027b9a
and byte [0x1400ef2a8], 0xfe
jmp 0x140027b78
mov rcx, qword [rsp + 0x38]
call fcn.14008901c
cmp byte [rsp + 0x77], 0
jns 0x140027b0a
mov rcx, qword [rsp + 0x60]
call fcn.14008901c
jmp 0x140027b0a
mov rcx, qword [0x1400f2c28]
test rcx, rcx
jne 0x140027b9a
mov ecx, 0x18
call fcn.140088fc0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400f2c28], rax
mov rdx, qword [r14 + 8]
call fcn.140021cea
cmp dword [r14 + 0x14], 0
jne 0x140027bc0
mov rcx, qword [0x1400f2c28]
cmp byte [rcx + 0x17], 0
jns 0x140027bba
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140027bf0
mov ebx, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140089390
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3
Function at 0x140027bf0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1400f05e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1400f2c48], 0
jne 0x140027e7f
mov rdi, qword [0x1400f2c28]
test rdi, rdi
je 0x140027cef
test byte [0x1400ef2a8], 1
je 0x140027e7f
cmp byte [rdi + 0x17], 0
jns 0x140027c48
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400f2c48], rax
add rax, 1
cmp rax, 1
ja 0x140027e7f
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140027e7c
cmp eax, 0x104
ja 0x140027e7c
mov rcx, qword [0x1400f2c28]
lea rdx, [rsp + 0x40]
call fcn.140021cea
mov rcx, qword [0x1400f2c28]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x140027df5
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x140027e04
jmp 0x140027e17
movabs rbp, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.140088fc0
mov rdi, rax
lea rsi, [rsp + 0x40]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.1400a3fc0
cmp rax, rbp
ja 0x140027ea2
mov rbx, rax
cmp rax, 0xb
jae 0x140027d51
mov byte [rdi + 0x17], bl
mov r15, rdi
test rbx, rbx
jne 0x140027d7d
jmp 0x140027d90
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
js 0x140027eaa
lea rcx, [rsi + rsi]
call fcn.140088fc0
mov r15, rax
mov qword [rdi], rax
add rbp, 0x11
or rbp, rsi
mov qword [rdi + 0x10], rbp
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14008bc30
mov word [r15 + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x140027da5
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.140021f22
cmp rax, 0xffffffffffffffff
je 0x140027dcd
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.140021e4a
lea rdx, [0x1400b9048]
mov rcx, rdi
call fcn.140021b1a
mov qword [0x1400f2c28], rdi
test byte [0x1400ef2a8], 1
jne 0x140027c3f
jmp 0x140027e7f
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140027e17
lea rdx, [0x1400b9044]
call fcn.140021b1a
mov rcx, qword [0x1400f2c28]
lea rdx, [0x1400b9048]
call fcn.140021b1a
mov rcx, qword [0x1400f2c28]
cmp byte [rcx + 0x17], 0
jns 0x140027e33
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400f2c48], rax
add rax, 1
cmp rax, 1
ja 0x140027e7f
mov qword [0x1400f2c48], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140089390
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.14002090c
call fcn.140099204
int3
Function at 0x14002a010
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov r12, rdx
mov r13, rcx
lea r15, [rcx + 0x18]
mov rcx, r15
call fcn.14003b660
mov r8, qword [r13 + 0x28]
test r8, r8
je 0x14002a158
mov rax, r12
shr rax, 0x20
lea edx, [r12*8]
add rdx, 8
xor rdx, rax
movabs rbx, 0x9ddfea08eb382d69
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rdx, rax
xor rdx, rcx
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rbx
mov rax, r8
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r8
sub rax, rdx
movabs rdx, 0x3333333333333333
mov rbx, rax
and rbx, rdx
shr rax, 2
and rax, rdx
add rax, rbx
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs rdi, 0x101010101010101
imul rdi, rax
shr rdi, 0x38
cmp rdi, 1
jbe 0x14002a0fb
mov rbx, rcx
cmp rcx, r8
jb 0x14002a102
mov rax, rcx
xor edx, edx
div r8
mov rbx, rdx
jmp 0x14002a102
lea rbx, [r8 - 1]
and rbx, rcx
mov rax, qword [r13 + 0x20]
mov rax, qword [rax + rbx*8]
test rax, rax
je 0x14002a158
mov rsi, qword [rax]
test rsi, rsi
je 0x14002a158
lea r9, [r8 - 1]
jmp 0x14002a12e
cmp qword [rsi + 0x10], r12
je 0x14002a171
mov rsi, qword [rsi]
test rsi, rsi
je 0x14002a158
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x14002a120
cmp edi, 1
jbe 0x14002a150
cmp rax, r8
jb 0x14002a153
xor edx, edx
div r8
mov rax, rdx
jmp 0x14002a153
and rax, r9
cmp rax, rbx
je 0x14002a126
mov rcx, r15
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [0x1400f5308]
cmp rdi, 1
ja 0x14002a1d4
lea rcx, [0x1400f5308]
call fcn.140027900
test al, al
je 0x14002a1cd
mov qword [0x1400f5310], 0
lea rbx, [0x1400f5308]
lea rdi, [0x1400f5310]
mov rcx, rdi
xor edx, edx
call fcn.1400443f0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400279a0
jmp 0x14002a1d4
mov rdi, qword [0x1400f5308]
mov rcx, rdi
call fcn.140044360
mov rbx, rax
mov rcx, rdi
mov rdx, r14
call fcn.1400443a0
mov rcx, qword [r14 + 0x28]
mov rdx, r12
call qword [rcx + 8]
mov rcx, rdi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400443a0