joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d810
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140175c18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rax, rax
jne 0x14006d835
call fcn.140089c90
mov rdx, rax
movsxd rcx, dword [rbx + 4]
mov eax, dword [rbx + 8]
add rcx, rcx
cmp dword [rdx + rcx*8 + 8], eax
je 0x14006d853
xor eax, eax
test rax, rax
setne al
add rsp, 0x20
pop rbx
ret
mov rax, qword [rdx + rcx*8]
test rax, rax
setne al
add rsp, 0x20
pop rbx
ret

Function at 0x14006f5a0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rax, [0x140162540]
mov rbx, rcx
mov qword [rcx], rax
xor ebp, ebp
add rcx, 8
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdi, rdx
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rbp
mov byte [rcx], bpl
call fcn.14002a2a0
lea rax, [0x140162718]
mov dword [rbx + 0x28], ebp
mov qword [rbx], rax
lea ecx, [rbp + 0x20]
mov qword [rbx + 0x30], rbp
mov byte [rbx + 0x38], bpl
call fcn.140111b94
cmp qword [rdi + 0x18], 0x10
mov rsi, rax
jb 0x14006f61e
mov rcx, qword [rdi]
jmp 0x14006f621
mov rcx, rdi
mov rax, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x67452301
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov qword [rsp + 0x3c], 0x10325476
mov dword [rsp + 0x44], ebp
call fcn.14008ca10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14008cb90
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
bswap rdx
call fcn.14008b140
mov ecx, 0x20
mov qword [rbx + 0x40], rax
call fcn.140111b94
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx + 8]
mov rcx, rax
mov rdx, qword [rdx]
call fcn.14008b140
mov qword [rbx + 0x48], rax
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140111850
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006f6d0
Capabilities:
Hash data with md5

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r14, qword [rsp + 0x100]
lea rax, [0x140162540]
mov qword [rcx], rax
mov rdi, r8
mov rbx, rcx
mov qword [rcx + 0x20], 0xf
add rcx, 8
xor r12d, r12d
mov rbp, r9
mov rsi, rdx
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov qword [rcx + 0x10], r12
mov byte [rcx], r12b
call fcn.14002a2a0
lea rax, [0x140162718]
mov dword [rbx + 0x28], r12d
mov qword [rbx], rax
lea ecx, [r12 + 0x30]
mov qword [rbx + 0x30], r12
mov byte [rbx + 0x38], r12b
call fcn.140111b94
cmp qword [rdi + 0x18], 0x10
mov r15, rax
jb 0x14006f766
mov rcx, qword [rdi]
jmp 0x14006f769
mov rcx, rdi
mov rax, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x67452301
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov qword [rsp + 0x3c], 0x10325476
mov dword [rsp + 0x44], r12d
call fcn.14008ca10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14008cb90
mov rdx, qword [rsp + 0x20]
mov r9, rbp
bswap rdx
mov r8, rsi
mov rcx, r15
call fcn.14008a1f0
mov ecx, 0x30
mov qword [rbx + 0x40], rax
call fcn.140111b94
mov rcx, qword [rbx + 0x40]
mov r9, r14
mov r8, rsi
mov rdx, qword [rcx + 8]
mov rcx, rax
mov rdx, qword [rdx]
inc rdx
call fcn.14008a1f0
mov qword [rbx + 0x48], rax
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140111850
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140070360
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x58], rbx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140070405
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140150ef8]
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400703f2
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffd
cmp eax, 1
ja 0x1400703f2
cmp dword [rsp + 0x48], 4
cmove ebx, dword [rsp + 0x50]
cmp qword [rsp + 0x58], 0
je 0x140070405
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140072030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rbp + 0x18], rax
xor r12d, r12d
mov r15, r9
mov dword [rsp + 0x30], r12d
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov r14d, 0x100000
jb 0x14007207a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [0x14017a910]
cmp eax, 0xffffffff
mov qword [rbp - 0x30], r12
setne bl
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
test rcx, rcx
je 0x1400720b1
mov rax, qword [rcx]
lea rdx, [rbp - 8]
call qword [rax + 0x10]
mov r8d, 0x8064
mov dword [rbp - 4], r12d
mov rdx, rdi
mov word [rbp], r12w
lea rcx, [rbp - 0x30]
call fcn.14006fe30
mov ecx, 0x50
call fcn.140111b94
mov rcx, rax
call fcn.14008be80
mov qword [rsp + 0x30], rax
mov rsi, rax
test bl, bl
je 0x140072128
lea rcx, [rbp - 0x30]
call fcn.140078a90
movabs rcx, 0x7fffffffffffffff
lea rdx, [rbp - 0x30]
cmp rax, rcx
mov r14, r12
lea rcx, [rsp + 0x60]
cmovbe r14, rax
call fcn.14006fcf0
mov rdx, rax
mov r8d, 1
mov rcx, rsi
call fcn.14008bd00
jmp 0x140072157
movdqa xmm0, xmmword [0x140160970]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x68]
movdqu xmmword [rbp + 8], xmm0
call fcn.14006fcf0
mov rdx, rax
lea r8, [rbp + 8]
mov r9d, 2
mov rcx, rsi
call fcn.14008bd70
mov rax, qword [rsi + 0x38]
test rax, rax
je 0x140072210
mov rcx, qword [rsi + 0x40]
test al, 7
jne 0x140072210
lea rax, [rcx - 0x40]
cmp rax, 0x3fffffc0
ja 0x140072210
mov ecx, 0x80
call fcn.140111b94
mov ecx, 0x40
mov rbx, rax
call fcn.140111b94
movups xmm0, xmmword [r15]
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x28], r12b
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
movaps xmmword [rsp + 0x50], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov r8, r14
mov qword [rsp + 0x38], rsi
call fcn.140074f90
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.140072830
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.1400727e0
mov rcx, qword [0x14017c108]
add rcx, 0x60
cmp rcx, rdi
je 0x14007220c
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.140029d5c
mov bl, 1
jmp 0x140072212
xor bl, bl
lea rcx, [rsp + 0x30]
call fcn.140072a50
lea rcx, [rbp - 0x30]
call fcn.1400787b0
mov rcx, qword [0x14017a910]
test rcx, rcx
je 0x14007223c
mov r8, qword [rcx]
lea rdx, [rbp - 8]
call qword [r8 + 0x18]
lea rcx, [rbp - 0x28]
call fcn.1400599c0
lea rcx, [rbp - 0x30]
call fcn.1400337b0
movzx eax, bl
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140111850
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400759c0
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ebp, ebp
mov rcx, qword [rdx]
mov rbx, r8
mov rdi, rdx
test rcx, rcx
je 0x1400759f0
mov qword [rdx], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140075a01
mov qword [rbx], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r9, [0x1401511b8]
lea rcx, [0x14013be00]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140075a55
mov rcx, qword [rdi]
lea rdx, [0x1401511c8]
mov r8, rbx
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140075a55
test rsi, rsi
je 0x140075a77
mov rcx, qword [rbx]
mov r8d, 2
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jns 0x140075a77
mov rcx, qword [rdi]
test rcx, rcx
je 0x140075a66
mov qword [rdi], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140075a77
mov qword [rbx], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140077a20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd r14, edx
or rax, 0xffffffffffffffff
xor edx, edx
movsxd r15, ecx
sub r14, r15
mov r12d, 0xffffffff
inc r14
div r14
mov rbp, rdx
not rbp
dec rbp
nop word [rax + rax]
mov edi, 8
lea rsi, [rsp + 0x60]
nop word [rax + rax]
cmp rdi, r12
mov ebx, edi
mov rcx, rsi
cmova ebx, r12d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x140077a89
int3
mov eax, ebx
add rsi, rax
sub rdi, rax
jne 0x140077a70
mov rax, qword [rsp + 0x60]
cmp rax, rbp
ja 0x140077a60
mov rbx, qword [rsp + 0x50]
xor edx, edx
mov rbp, qword [rsp + 0x58]
div r14
lea eax, [r15 + rdx]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140077ac0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov ebx, 8
lea rdi, [rsp + 0x40]
mov ebp, 0xffffffff
nop dword [rax + rax]
cmp rbx, rbp
mov esi, ebx
mov rcx, rdi
cmova esi, ebp
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x140077af8
int3
mov eax, esi
add rdi, rax
sub rbx, rax
jne 0x140077ae0
mov rax, qword [rsp + 0x40]
movabs rcx, 0x1fffffffffffff
and rax, rcx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
jns 0x140077b26
addsd xmm0, qword [0x140160918]
mov edx, 0xffffffcb
call fcn.14011fe48
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140078450
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [r8 + 0x18], 0x10
jb 0x14007847b
mov rax, qword [r8]
jmp 0x14007847e
mov rax, r8
movaps xmm1, xmmword [rdx]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmmword [rsp + 0x30], xmm1
call fcn.140050c60
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x1400784bc
mov rbx, qword [rax]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140050c60
cmp qword [rax + 0x18], 8
jb 0x1400784d5
mov rax, qword [rax]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
movabs rdi, 0x7fffffffffffffff
mov rax, qword [rsp + 0x58]
setne bl
cmp rax, 8
jb 0x14007854c
mov rcx, qword [rsp + 0x40]
inc rax
cmp rax, rdi
ja 0x1400785cd
add rax, rax
cmp rax, 0x1000
jb 0x140078547
test cl, 0x1f
jne 0x1400785d3
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400785d9
sub rcx, rax
cmp rcx, 8
jb 0x1400785df
cmp rcx, 0x27
ja 0x1400785e5
mov rcx, rax
call fcn.140111e78
xor eax, eax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rax
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x78]
cmp rax, 8
jb 0x1400785a9
mov rcx, qword [rsp + 0x60]
inc rax
cmp rax, rdi
ja 0x1400785eb
add rax, rax
cmp rax, 0x1000
jb 0x1400785a4
test cl, 0x1f
jne 0x1400785f1
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400785f7
sub rcx, rax
cmp rcx, 8
jb 0x1400785fd
cmp rcx, 0x27
ja 0x140078603
mov rcx, rax
call fcn.140111e78
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140111850
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3

Function at 0x140078610
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rdx]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140050c60
cmp qword [rax + 0x18], 8
jb 0x140078647
mov rax, qword [rax]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
mov rax, qword [rsp + 0x48]
setne bl
cmp rax, 8
jb 0x1400786a9
mov rcx, qword [rsp + 0x30]
inc rax
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
ja 0x1400786bf
add rax, rax
cmp rax, 0x1000
jb 0x1400786a4
test cl, 0x1f
jne 0x1400786c5
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400786cb
sub rcx, rax
cmp rcx, 8
jb 0x1400786d1
cmp rcx, 0x27
ja 0x1400786d7
mov rcx, rax
call fcn.140111e78
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140111850
add rsp, 0x60
pop rbx
ret
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
Function at 0x140078860
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r14
push r15
sub rsp, 0x58
movsxd rbp, r9d
mov r12, r8
mov r15, rdx
mov r14, rcx
test r9d, r9d
jns 0x14007888c
or eax, 0xffffffff
add rsp, 0x58
pop r15
pop r14
pop r12
pop rbp
ret
mov rcx, qword [0x14017a910]
mov qword [rsp + 0x80], rbx
xor ebx, ebx
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x50], rdi
mov edi, ebx
test rcx, rcx
je 0x1400788e5
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
je 0x1400788e5
mov rcx, qword [0x14017a910]
lea rdi, [r14 + 0x28]
lea rsi, str.File::Read
mov qword [rsp + 0x20], rbp
lea r9, [r14 + 8]
mov r8, rdi
mov rdx, rsi
mov r10, qword [rcx]
call qword [r10 + 0x20]
jmp 0x1400788ea
mov rsi, qword [rsp + 0x38]
mov rcx, qword [r14]
lea r9, [rsp + 0x98]
xor eax, eax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rax
mov r8d, ebp
mov dword [rsp + 0x40], r15d
mov rdx, r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
shr r15, 0x20
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007893c
mov ebx, dword [rsp + 0x98]
jmp 0x14007894a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x14007894a
or ebx, 0xffffffff
test rdi, rdi
je 0x140078968
mov rcx, qword [0x14017a910]
test rcx, rcx
je 0x140078968
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rsi
call qword [r9 + 0x28]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
add rsp, 0x58
pop r15
pop r14
pop r12
pop rbp
ret

Function at 0x140078990
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rax + 0x10], rbp
mov rbx, rcx
mov rcx, qword [0x14017a910]
xor edi, edi
mov qword [rax + 0x18], r14
mov rbp, rdx
mov qword [rax + 0x20], r15
mov r15, r8
movsxd r14, r9d
test rcx, rcx
je 0x1400789f4
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
je 0x1400789f4
mov rcx, qword [0x14017a910]
lea rdi, [rbx + 0x28]
lea rsi, str.File::Write
mov qword [rsp + 0x20], r14
lea r9, [rbx + 8]
mov r8, rdi
mov rdx, rsi
mov r10, qword [rcx]
call qword [r10 + 0x20]
jmp 0x1400789f9
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx]
lea r9, [rsp + 0x70]
xor eax, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], rax
mov r8d, r14d
mov dword [rsp + 0x40], ebp
mov rdx, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
shr rbp, 0x20
mov dword [rsp + 0x44], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [rsp + 0x88]
or ebx, 0xffffffff
mov r14, qword [rsp + 0x80]
test eax, eax
mov rbp, qword [rsp + 0x78]
cmovne ebx, dword [rsp + 0x70]
test rdi, rdi
je 0x140078a7a
mov rcx, qword [0x14017a910]
test rcx, rcx
je 0x140078a7a
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rsi
call qword [r9 + 0x28]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140078a90
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xor edi, edi
mov rcx, qword [0x14017a910]
test rcx, rcx
je 0x140078ae7
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
je 0x140078ae7
mov rcx, qword [0x14017a910]
lea rdi, [rbx + 0x28]
lea rsi, str.File::GetLength
mov qword [rsp + 0x20], 0
lea r9, [rbx + 8]
mov r8, rdi
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x140078aec
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rbx, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
test eax, eax
cmove rbx, rcx
test rdi, rdi
je 0x140078b27
mov rcx, qword [0x14017a910]
test rcx, rcx
je 0x140078b27
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rsi
call qword [r9 + 0x28]
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140078b40
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov qword [rsp + 0x58], rbp
mov rcx, qword [0x14017a910]
xor edi, edi
mov rbp, rdx
test rcx, rcx
je 0x140078b9b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
je 0x140078b9b
mov rcx, qword [0x14017a910]
lea rdi, [rbx + 0x28]
lea rsi, str.File::SetLength
mov qword [rsp + 0x20], rbp
lea r9, [rbx + 8]
mov r8, rdi
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x140078ba0
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx]
lea r8, [rsp + 0x50]
mov r9d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140078bf9
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140078bf9
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140078bf9
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140078bf9
mov bl, 1
jmp 0x140078bfb
xor bl, bl
mov rbp, qword [rsp + 0x58]
test rdi, rdi
je 0x140078c1e
mov rcx, qword [0x14017a910]
test rcx, rcx
je 0x140078c1e
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rsi
call qword [r9 + 0x28]
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400792d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x14017c138]
test rbx, rbx
jne 0x1400792ea
xor eax, eax
add rsp, 0x20
pop rbx
ret
test cl, cl
je 0x140079330
mov ecx, dword [0x140175c18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
test rax, rax
jne 0x14007930a
call fcn.140089c90
mov rcx, rax
movsxd rdx, dword [rbx + 0x1c]
mov eax, dword [rbx + 0x20]
add rdx, rdx
cmp dword [rcx + rdx*8 + 8], eax
jne 0x140079323
mov rax, qword [rcx + rdx*8]
test rax, rax
jne 0x14007933d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14007ad80
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140079350
add rsp, 0x20
pop rbx
ret
Function at 0x140079350
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140175c18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rax, rax
jne 0x140079375
call fcn.140089c90
mov rdx, rax
movsxd rcx, dword [rbx + 0x1c]
mov eax, dword [rbx + 0x20]
add rcx, rcx
cmp dword [rdx + rcx*8 + 8], eax
je 0x14007938d
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, qword [rdx + rcx*8]
add rsp, 0x20
pop rbx
ret
Function at 0x14007ad80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
mov rdi, rcx
add rcx, 0x70
call fcn.14006b030
lea rcx, [rdi + 0x28]
call fcn.140079400
lea rcx, [rdi + 0x70]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebp, ebp
jne 0x14007adff
mov rax, qword [0x14017c140]
test rax, rax
jne 0x14007ade0
lea edx, [rbp + 1]
mov r8d, 0x3e8
lea r9d, [rbp + 0x32]
lea rcx, str.ActivityTracker.ThreadTrackers.MemLimitTrackerCount
call fcn.140051900
mov qword [0x14017c140], rax
mov edx, dword [rdi + 0x24]
mov rcx, rax
mov r8, qword [rax]
call qword [r8 + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rdi]
mov edx, ebp
mov qword [rsp + 0x40], rsi
call fcn.14007c6e0
mov ecx, 0x30
mov rbx, rax
call fcn.140111b94
mov r8, qword [rdi + 8]
mov rdx, rbx
mov rcx, rax
mov rsi, rax
call fcn.14007a230
lea rax, [0x140162838]
mov dword [rsi + 0x20], ebp
mov qword [rsi], rax
mov qword [rsi + 0x28], rbx
mov ecx, dword [0x140175c18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rax, rax
jne 0x14007ae5a
call fcn.140089c90
mov rdx, rax
movsxd rax, dword [rdi + 0x1c]
mov ebx, 1
add rax, rax
mov qword [rdx + rax*8], rsi
movsxd rcx, dword [rdi + 0x1c]
mov eax, dword [rdi + 0x20]
add rcx, rcx
mov dword [rdx + rcx*8 + 8], eax
lock xadd dword [rdi + 0x24], ebx
mov rax, qword [0x14017c148]
test rax, rax
jne 0x14007aea4
lea r9d, [rax + 0x65]
lea r8d, [rax + 0x64]
lea rcx, str.ActivityTracker.ThreadTrackers.Count
call fcn.1400540a0
mov qword [0x14017c148], rax
mov r8, qword [rax]
lea edx, [rbx + 1]
mov rcx, rax
call qword [r8 + 0x20]
mov rbx, qword [rsp + 0x48]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14007bcd0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x50
mov rbx, qword [0x14017c138]
mov r15, r8
mov r12, rdx
mov rdi, rcx
test rbx, rbx
jne 0x14007bd09
xor esi, esi
mov rax, rcx
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, dword [0x140175c18]
mov qword [rsp + 0x48], rbp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
test rax, rax
jne 0x14007bd2a
call fcn.140089c90
mov rcx, rax
movsxd rbp, dword [rbx + 0x1c]
mov eax, dword [rbx + 0x20]
add rbp, rbp
cmp dword [rcx + rbp*8 + 8], eax
jne 0x14007bd43
mov rbp, qword [rcx + rbp*8]
test rbp, rbp
jne 0x14007bd4e
mov rcx, rbx
call fcn.14007ad80
mov rbp, rax
xor esi, esi
mov qword [rdi], rbp
test rbp, rbp
je 0x14007bde1
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x40], r14
mov r14d, dword [rcx + 0x38]
cmp r14d, dword [rbp + 0x18]
jb 0x14007bd75
mov rax, qword [rbp + 8]
jmp 0x14007bdd1
mov rbx, r14
lea rcx, [rsp + 0x80]
shl rbx, 7
add rbx, qword [rbp + 0x10]
call qword [0x140175bf0]
mov byte [rsp + 0x20], 1
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], rsi
mov byte [rbx + 0x70], 0x30
mov qword [rbx + 0x78], r15
mov qword [rsp + 0x28], rcx
movaps xmm0, xmmword [rsp + 0x20]
mov qword [rbx + 0x18], rsi
mov rax, qword [rbp + 8]
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rcx
lea ecx, [r14 + 1]
mov dword [rax + 0x38], ecx
mov dword [rdi + 8], r14d
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rax, rdi
mov qword [rdi + 0x10], rsi
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret