joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029a2c
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.14001d034
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d034
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029b7c
cmp rax, 0xffffffffffffffff
je 0x140029b7c
xor edi, edi
test rbp, rbp
jle 0x140029b27
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f948
mov rbx, rax
test rax, rax
jne 0x140029ab4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029b1d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a99c
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.14001dd10
cmp eax, 0xffffffff
je 0x140029afd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029ac4
mov edx, r15d
mov ecx, r14d
call fcn.14001a99c
jmp 0x140029b1d
cmp byte [rsi + 0x38], dil
je 0x140029b14
cmp dword [rsi + 0x34], 5
jne 0x140029b14
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029b1d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b700
jmp 0x140029b90
jns 0x140029b90
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d034
cmp rax, 0xffffffffffffffff
jne 0x140029b48
cmp byte [rsi + 0x30], dil
je 0x140029b90
mov edi, dword [rsi + 0x2c]
jmp 0x140029b90
mov ecx, r14d
call fcn.140018e54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029b90
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 0x140029b90
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029b89
mov eax, dword [rsi + 0x2c]
jmp 0x140029b8e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d034
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 0x14002ac80
Capabilities:
Parse pe header

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

Function at 0x1400027a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400027ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400027ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400027ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400027ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1400027ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400027f0
xor al, al
add rsp, 0x28
ret
Function at 0x14001e5d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140022520
sub rsp, rax
mov rax, qword [0x140060180]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14001e692
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001e63d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001e630
cmp rcx, 1
jb 0x14001e6ea
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001e660
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140031b4c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001e620
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001e6c3
lea rcx, [rsp + 0x80]
call fcn.140034860
jmp 0x14001e6c5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140022250
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400318f8
int3
Function at 0x140021dd0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140060180]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140021e75
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140021e2d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140021e20
cmp rcx, 1
jb 0x140021ea6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140021e43
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140031b4c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140021e10
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140022250
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1400318f8
int3

Function at 0x1400220e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140060180]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140022185
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002213d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140022130
cmp rcx, 1
jb 0x1400221b7
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140022153
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140031b4c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140022120
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140022250
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400318f8
int3

Function at 0x140022cb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022d02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022d02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022d02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022d02
cmp dword [rcx + 0x84], 0xe
jbe 0x140022d02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140022d04
xor al, al
add rsp, 0x28
ret
Function at 0x1400280f8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140027f63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140027f63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027f63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140027f63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140027f63
cmp dword [rcx + 0x84], 0xe
jbe 0x140027f63
cmp dword [rcx + 0xf8], 0
je 0x140027f63
mov ecx, ebx
call fcn.140028014
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140027df0
nop
cmp dword [rbp + 0x20], 0
je 0x140027fb1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140027fbc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027ef4
Function at 0x1400399e0
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 0x140039a67
mov rsi, rbx
cmp word [rax], bp
je 0x140039a26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039a10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140039a0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003494c
mov rdi, rax
test rax, rax
je 0x140039a54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003f6a0
mov rbp, rdi
xor ecx, ecx
call fcn.140035880
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 0x14003d180
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003d196
mov al, 1
jmp 0x14003d1f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003d1a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003d1f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140039d28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003d1f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003d1f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003d1f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003d1f6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003f4f0
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x98], r9
call fcn.1400a5a20
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x88]
mov qword [0x14029d2c7], rax
lea rax, [rsp + 0x98]
mov qword [0x14029d2d9], rax
lea rax, [rsp + 0x58]
mov qword [0x14029d2f1], rax
lea rax, [rsp + 0x90]
mov qword [0x14029d302], rax
lea rax, [rsp + 0x60]
mov qword [0x14029d315], rax
lea rax, [rsp + 0x80]
mov qword [0x14029d325], rax
lea rax, [rsp + 0x68]
mov qword [0x14029d33e], rax
xor edx, edx
mov ecx, 0x104
call fcn.1400a6a30
xor edx, edx
xor ecx, ecx
call fcn.1400a86c0
xor edx, edx
mov ecx, 0x1e00022
call fcn.1400a6650
xor edx, edx
mov ecx, 0x1e00023
call fcn.1400a6650
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.DISPLAY
call sub.GDI32.dll_CreateDCW
mov rbx, rax
mov ecx, 0x1e00023
call fcn.1400a7440
mov qword [rsp + 0x60], rbx
xor edx, edx
mov ecx, 0x1e00025
call fcn.1400a6650
cmp qword [rsp + 0x60], 0
jne 0x14000f5d0
xor edx, edx
mov ecx, 0x1e00032
call fcn.1400a6650
xor edx, edx
mov ecx, 0x1e00033
call fcn.1400a6650
mov rbx, qword [rsp + 0x68]
call fcn.1400a6e00
mov rax, rbx
add rsp, 0x70
pop rbx
ret
xor edx, edx
mov ecx, 0x1e00026
call fcn.1400a6650
mov rcx, qword [rsp + 0x60]
call sub.GDI32.dll_CreateCompatibleDC
mov rbx, rax
mov ecx, 0x1e00026
call fcn.1400a7440
mov qword [rsp + 0x58], rbx
xor edx, edx
mov ecx, 0x1e00028
call fcn.1400a6650
cmp qword [rsp + 0x58], 0
jne 0x14000f650
xor edx, edx
mov ecx, 0x1e00030
call fcn.1400a6650
xor edx, edx
mov ecx, 0x1e00031
call fcn.1400a6650
mov rcx, qword [rsp + 0x60]
call sub.GDI32.dll_DeleteDC
mov ecx, 0x1e00031
call fcn.1400a7440
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
jmp 0x14000f59c
xor edx, edx
mov ecx, 0x1e00029
call fcn.1400a6650
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call sub.GDI32.dll_CreateCompatibleBitmap
mov rbx, rax
mov ecx, 0x1e00029
call fcn.1400a7440
mov qword [rsp + 0x68], rbx
xor edx, edx
mov ecx, 0x1e0002b
call fcn.1400a6650
cmp qword [rsp + 0x68], 0
jne 0x14000f6e0
xor edx, edx
mov ecx, 0x1e0002e
call fcn.1400a6650
xor edx, edx
mov ecx, 0x1e0002f
call fcn.1400a6650
mov rcx, qword [rsp + 0x58]
call sub.GDI32.dll_DeleteDC
mov ecx, 0x1e0002f
call fcn.1400a7440
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
jmp 0x14000f60c
xor edx, edx
mov ecx, 0x1e0002c
call fcn.1400a6650
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call sub.GDI32.dll_SelectObject
mov ecx, 0x1e0002c
call fcn.1400a7440
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
xor edx, edx
mov ecx, 0x1e0002d
call fcn.1400a6650
mov qword [rsp + 0x40], 0xcc0020
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.GDI32.dll_BitBlt
mov ecx, 0x1e0002d
call fcn.1400a7440
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
jmp 0x14000f69c
Function at 0x140011d00
Capabilities:
Move file

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rcx
call fcn.1400a5a20
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400a5ab0
lea rax, [rsp + 0x40]
mov qword [0x14029cca8], rax
xor edx, edx
mov ecx, 0x10c
call fcn.1400a6a30
xor edx, edx
xor ecx, ecx
call fcn.1400a86c0
xor edx, edx
mov ecx, 0x1a00091
call fcn.1400a6650
xor edx, edx
mov ecx, 0x1a00092
call fcn.1400a6650
call fcn.1400a5c20
call fcn.1400a5c20
lea rcx, str.Deleting_file
call fcn.1400a5e10
mov rcx, qword [rsp + 0x40]
call fcn.1400a5e10
call fcn.1400a5bf0
mov rcx, rax
lea rax, str.forceDelete
mov qword [rsp + 0x20], rax
lea r9, [0x1402a7540]
mov r8d, __WSAFDIsSet
lea rdx, str.rooSupport.pbi
call fcn.1400017e0
mov ecx, 0x1a00092
call fcn.1400a7440
call fcn.1400a5b80
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
xor edx, edx
mov ecx, 0x1a00093
call fcn.1400a6650
mov rcx, qword [rsp + 0x40]
call fcn.1400907c0
mov rcx, qword [rsp + 0x40]
call fcn.140090a50
test rax, rax
js 0x140011e54
xor edx, edx
mov ecx, 0x1a00094
call fcn.1400a6650
mov edx, pe_nt_image_headers64
mov rcx, qword [rsp + 0x40]
call fcn.14009090c
mov edx, pe_nt_image_headers64
mov rcx, qword [rsp + 0x40]
call fcn.140090e3c
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
xor edx, edx
mov ecx, 0x1a00095
call fcn.1400a6650
mov edx, 2
mov rcx, qword [rsp + 0x40]
call fcn.140090570
mov edx, 2
mov rcx, qword [rsp + 0x40]
call fcn.140090e6c
test rax, rax
je 0x140011e88
xor edx, edx
mov ecx, 0x1a00097
call fcn.1400a6650
xor edx, edx
mov ecx, 0x1a00098
call fcn.1400a6650
xor edx, edx
mov ecx, 0x1a00099
call fcn.1400a6650
call fcn.1400a6e00
mov rcx, qword [rsp + 0x40]
call fcn.1400a5ce0
xor eax, eax
add rsp, 0x38
ret
xor edx, edx
mov ecx, 0x1a00096
call fcn.1400a6650
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_MoveFileExW
mov ecx, 0x1a00096
call fcn.1400a7440
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
jmp 0x140011e48
Function at 0x140011ec0
Capabilities:
Get common file path
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
movsxd rcx, ecx
call fcn.1400a5d10
call fcn.1400a5a20
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rbx, [0x1402a7098]
mov qword [0x14029cc6b], rbx
lea rax, [rsp + 0x20]
mov qword [0x14029cc78], rax
lea rsi, [rsp + 0x28]
mov qword [0x14029cc8f], rsi
xor edx, edx
mov ecx, 0x10a
call fcn.1400a6a30
xor edx, edx
xor ecx, ecx
call fcn.1400a86c0
xor edx, edx
mov ecx, 0x1a000b0
call fcn.1400a6650
xor edx, edx
mov ecx, 0x1a000b3
call fcn.1400a6650
mov rdx, qword [0x1402a7098]
lea rcx, [0x1402a7540]
call fcn.1400a5ca0
test eax, eax
jne 0x140012060
xor edx, edx
mov ecx, 0x1a000b7
call fcn.1400a6650
xor edx, edx
mov ecx, 0x1a000b8
call fcn.1400a6650
call fcn.1400a5c20
call fcn.1400a5c20
call fcn.1400a5b30
mov ebx, eax
mov edx, eax
mov ecx, 0x104
call fcn.1400a13a0
mov edx, ebx
mov ecx, 0x104
call fcn.1400a1f30
call fcn.1400a5b30
mov edx, eax
mov rcx, rsi
call fcn.1400a5d50
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
xor edx, edx
mov ecx, 0x1a000b9
call fcn.1400a6650
mov r9, qword [rsp + 0x28]
xor r8d, r8d
lea rdx, [0x140297bf0]
mov rcx, qword [0x1402a7098]
call sub.KERNEL32.dll_GetTempFileNameW
mov ecx, 0x1a000b9
call fcn.1400a7440
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
xor edx, edx
mov ecx, 0x1a000bb
call fcn.1400a6650
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_MoveFileExW
mov ecx, 0x1a000bb
call fcn.1400a7440
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
xor edx, edx
mov ecx, 0x1a000bd
call fcn.1400a6650
call fcn.1400a5c20
mov rcx, qword [rsp + 0x28]
call fcn.1400a5e10
call fcn.1400a5bf0
mov rbx, rax
call fcn.1400a6e00
mov rcx, qword [rsp + 0x28]
call fcn.1400a5ce0
mov rax, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor edx, edx
mov ecx, 0x1a000b4
call fcn.1400a6650
call fcn.1400a5c20
call fcn.1400a5c20
call fcn.1400a5b30
mov edi, eax
mov edx, eax
mov ecx, 0x104
call fcn.1400a13a0
mov edx, edi
mov ecx, 0x104
call fcn.1400a1f30
call fcn.1400a5b30
mov edx, eax
mov rcx, rbx
call fcn.1400a5d50
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
xor edx, edx
mov ecx, 0x1a000b5
call fcn.1400a6650
mov rdx, qword [0x1402a7098]
mov ecx, 0x104
call sub.KERNEL32.dll_GetTempPathW
mov rdi, rax
mov ecx, 0x1a000b5
call fcn.1400a7440
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
xor edx, edx
mov ecx, 0x1a000b6
call fcn.1400a6650
call fcn.1400a5c20
call fcn.1400a5c20
mov rdi, qword [0x1402a7098]
call fcn.1400a5b30
mov r8d, eax
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400a1880
call fcn.1400a5b30
mov edx, eax
mov rcx, rbx
call fcn.1400a5d50
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400a83e0
jmp 0x140011f54
Function at 0x14002f47c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1402a7560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002f4d6
mov r8, qword [0x1402882b0]
lea edx, [rax + 8]
mov rcx, qword [0x1402a74e8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402a7560]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140027950
mov rdx, rbx
lea rcx, [0x14002f454]
call fcn.14002f620
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14002f4e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402a7560], eax
add rsp, 0x28
jmp fcn.14002f47c

Function at 0x14002f620
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1402a7568], 0
lea rbx, [0x1402a7578]
mov r14, rdx
mov r15, rcx
jne 0x14002f66d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1402a756c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1402a7568], 1
mov ecx, dword [0x1402a756c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14002f742
mov rcx, qword [0x1402a74e8]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14002f76d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402a7570]
test rax, rax
je 0x14002f6bd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1402a7570], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14002f788]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1402a756c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1402a74e8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14002f76d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400300e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003012a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003012a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003012a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003012a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003012a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003012c
xor al, al
add rsp, 0x28
ret

Function at 0x1400354fc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003556b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003556b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003556b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003556b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003556b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003556b
cmp dword [rcx + 0xf8], 0
je 0x14003556b
mov ecx, ebx
call fcn.140035670
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140035330
nop
cmp dword [rbp + 0x20], 0
je 0x1400355b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400355c4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400354fc

Function at 0x14003575c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400354fc