joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001450
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movsxd r11, dword [rdx + 0x3c]
mov r8d, ecx
add r11, rdx
movzx eax, word [r11 + 0x14]
lea rbx, [r11 + 0x18]
add rbx, rax
cmp ecx, dword [rbx + 0x14]
jae 0x140001478
mov eax, ecx
mov rbx, qword [rsp + 8]
ret
movzx r11d, word [r11 + 6]
xor edx, edx
cmp dx, r11w
jae 0x1400014ba
nop word [rax + rax]
movzx eax, dx
lea rcx, [rax + rax*4]
mov r10d, dword [rbx + rcx*8 + 0xc]
lea r9, [rbx + rcx*8]
cmp r8d, r10d
jb 0x1400014b1
mov ecx, dword [r9 + 0x10]
add ecx, r10d
cmp r8d, ecx
jb 0x1400014c2
inc dx
cmp dx, r11w
jb 0x140001490
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x14]
mov rbx, qword [rsp + 8]
sub eax, r10d
add eax, r8d
ret

Function at 0x140001da4
Capabilities:
Parse pe header

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

Function at 0x1400060a8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005ea4
Function at 0x140009164
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 0x140009194
xor eax, eax
jmp 0x140009257
mov rbp, rbx
cmp word [rax], si
je 0x1400091b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400091a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000919c
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.140009084
movsxd r14, eax
test eax, eax
jne 0x1400091f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000918d
mov rcx, r14
call fcn.140009bf8
mov rdi, rax
test rax, rax
jne 0x140009210
xor ecx, ecx
call fcn.1400076bc
jmp 0x1400091ec
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.140009084
test eax, eax
jne 0x140009241
mov rcx, rdi
call fcn.1400076bc
jmp 0x14000924b
xor ecx, ecx
call fcn.1400076bc
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 0x14003bf90
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x280
mov ebx, r9d
mov rsi, r8
mov edi, edx
mov r14, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401ed8a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003c057
mov r15, rax
lea r9, [rsp + 0x68]
mov qword [r9], 0
mov rcx, r14
xor edx, edx
xor r8d, r8d
call qword [case.0x140174010.0]
test eax, eax
jns 0x14003c01b
test bl, bl
je 0x14003c01b
lea r9, [rsp + 0x68]
mov rcx, r14
mov edx, 0x8800
xor r8d, r8d
mov rax, r15
call qword [case.0x140174010.0]
test eax, eax
setns bl
jns 0x14003c0f8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003c036
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140110d20
mov eax, ebx
add rsp, 0x280
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea r14, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140112e60
mov word [r14], 0
mov qword [rsp + 0x20], r14
xor ecx, ecx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x14003c0b1
cmp eax, 0x80070057
je 0x14003c0b1
test bl, bl
je 0x14003c0b1
or edi, 0xa000
mov qword [rsp + 0x20], r14
xor ecx, ecx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
setns bl
js 0x14003c036
lea rdi, [rsp + 0x30]
mov qword [rdi], r14
mov rcx, r14
call fcn.140134234
mov qword [rdi + 8], rax
lea r14, [rsp + 0x40]
mov rcx, r14
mov rdx, rdi
call fcn.1400ebed0
mov rcx, rsi
mov rdx, r14
call fcn.1400ec0a0
mov rcx, r14
call fcn.1400ec090
jmp 0x14003c036
mov rdx, qword [rsp + 0x68]
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14014b280
movzx eax, byte [rdi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
lea rdx, [rsp + 0x58]
mov qword [rdx], rax
cmovs rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
lea r14, [rsp + 0x70]
mov rcx, r14
call fcn.1400ebed0
mov rcx, rsi
mov rdx, r14
call fcn.1400ec0a0
mov rcx, r14
call fcn.1400ec090
cmp byte [rdi + 0x17], 0
jns 0x14003c026
mov rcx, qword [rsp + 0x40]
call fcn.14010f794
jmp 0x14003c026

Function at 0x14003c170
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, section..rdata
mov edx, 0xd
mov r8, rsi
xor r9d, r9d
call fcn.14003bf90
test al, al
je 0x14003c19b
mov al, 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401be010]
mov edx, 5
mov r8, rsi
mov r9b, 1
add rsp, 0x20
pop rsi
jmp fcn.14003bf90

Function at 0x14003c1c0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x1401be020]
mov edx, 0x27
mov r8, rsi
xor r9d, r9d
call fcn.14003bf90
test al, al
je 0x14003c1eb
mov al, 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401be010]
mov edx, 5
mov r8, rsi
mov r9b, 1
add rsp, 0x20
pop rsi
jmp fcn.14003bf90
Function at 0x14003c210
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x1401be040]
mov edx, 0xe
mov r8, rsi
xor r9d, r9d
call fcn.14003bf90
test al, al
je 0x14003c23b
mov al, 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401be010]
mov edx, 5
mov r8, rsi
mov r9b, 1
add rsp, 0x20
pop rsi
jmp fcn.14003bf90

Function at 0x140040080
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0x101
lea rbx, [rsp + 0x30]
mov r8d, 0x202
mov rcx, rbx
mov dl, 0xaa
call fcn.140112e60
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edi, eax
test eax, eax
jne 0x1400400f3
test edi, edi
setne bl
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140110d20
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.140134234
mov rcx, rsi
mov rdx, rbx
mov r8, rax
call fcn.140061910
jmp 0x1400400d1

Function at 0x140041850
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r9
mov r15, r8
mov r14, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdi, [rcx + 0x10]
mov rcx, rdi
call fcn.1400df1e0
mov ebx, eax
test al, al
je 0x140041957
mov rax, qword [r15 + 8]
mov dword [rax], 0x20
mov ecx, dword [r14 + 0x20]
mov dword [rax + 4], ecx
mov dword [rax + 0xc], 0
mov ecx, dword [r14 + 0x18]
cmp ecx, 2
ja 0x1400418ad
mov dword [rax + 8], ecx
mov rcx, qword [r14 + 0x28]
mov rdx, qword [r14 + 0x30]
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14], rax
mov rcx, rdi
mov rdx, r14
call fcn.140070ad0
xor eax, eax
mov qword [rsp + 0x28], rax
mov r15, qword [r14]
mov qword [r14], rax
cmp r15, 0xffffffffffffffff
je 0x1400418f7
test r15, r15
je 0x14004191b
call fcn.1400eb610
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [r15 + 1]
cmp rax, 2
jb 0x140041913
mov qword [rsp + 0x28], r15
call fcn.1400eb610
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
call fcn.1400f54f0
cmp qword [rsi], 0
je 0x140041983
mov rcx, qword [rsi + 8]
lea rsi, [rsp + 0x30]
mov rdx, rsi
call fcn.1400f5460
mov rcx, rsi
call fcn.1400f55a0
mov rax, qword [rsp + 0x40]
inc rax
cmp rax, 2
jae 0x140041972
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140110d20
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400eb610
mov rcx, qword [rsp + 0x40]
call fcn.1400de840
jmp 0x140041957
int3
Function at 0x140062670
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1401ea230]
mov qword [rcx], rax
add rcx, 8
call fcn.1400d8400
lea rcx, [rsi + 0x10]
call fcn.1400d8400
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.1400d8400
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [0x1401faae0]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.14007d610
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], ebp
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], bl
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], bl
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], rbx
call fcn.140038260
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x1401faae4], edx
je 0x14006286b
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.1400f5870
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14006288f
call fcn.140064eb0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140064f60
mov qword [0x14022e9c0], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [0x1401faae8], edx
jne 0x1400628ad
test dword [0x1401faaec], edx
jne 0x1400628a2
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.14007d3f0
jmp 0x14006282c
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x140174010.0]
jmp 0x140062839
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x140062884
cmp rax, 0x40
mov eax, 0x100
jmp 0x140062823
Function at 0x140064160
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x140064190
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400641c7
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400de070
lea rax, [rdx - 1]
test rdx, rax
jne 0x14006419e
mov rdi, rdx
jmp 0x140064175
mov rcx, rdx
call fcn.1400d9250
mov rdi, rax
jmp 0x140064175
mov rcx, rdx
call fcn.1400d9250
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14006417e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
jae 0x1400641bf
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x1400641e9
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400641ee
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.14012b2fc
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1401db0e8]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1400641ab
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1400641ab
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400641b3

Function at 0x140065720
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400657a9
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140065793
cmp dword [rsp + 0x38], 4
jne 0x140065793
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140110d20
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140065793
Function at 0x1400657b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140110cc0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140112e60
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140065874
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140065878
lea rcx, [rsp + 0x840]
call fcn.140134234
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140061910
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140110d20
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140065855
cmp eax, 2
jne 0x1400658cd
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140112e60
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400658d4
lea rcx, [rsp + 0x40]
call fcn.140134234
lea rdx, [rsp + 0x40]
jmp 0x140065848
mov edi, 0x3f4
jmp 0x140065855
mov edi, 0xea
jmp 0x140065855
Function at 0x140065f10
Capabilities:
Create thread

Disassembly:
jmp 0x140065f10
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.14010f758
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x140225f48]
je 0x140065fde
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400663e0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140065ff3
test r14, r14
je 0x140065fe8
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140110d20
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.1400c1500
jmp 0x140065f75
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140065fb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14006600c
mov ebp, eax
cmp eax, 0x5af
je 0x14006600c
cmp ebp, 0xe
jne 0x140066037
mov rcx, rbx
call fcn.14017fce0
test rsi, rsi
je 0x140065fb8
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x140225f48]
jne 0x14006602d
call fcn.1400c1630
mov rcx, rsi
call fcn.14010f794
jmp 0x140065fb8
mov eax, dword [0x14022ea50]
mov ecx, dword [0x140226b84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400660af
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14006da30
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x14022ea48]
call fcn.14007f6f0
cmp byte [rbx + 0x17], 0
jns 0x140066014
mov rcx, qword [rsp + 0x38]
call fcn.14010f794
jmp 0x140066014
lea rcx, [0x14022ea50]
call fcn.14010f8b0
cmp dword [0x14022ea50], 0xffffffff
jne 0x140066058
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14007f6c0
mov qword [0x14022ea48], rax
lea rcx, [0x14022ea50]
call fcn.14010f948
jmp 0x140066058

Function at 0x140066730
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140066777
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140066791
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006676f
mov qword [rsi], rdi
call fcn.1400eb610
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x1400667a7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400eb610
mov rcx, qword [rsi]
call fcn.1400de840
mov qword [rsi], 0
jmp 0x14006675d
int3
Function at 0x1400667e0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14006680a
call fcn.1400eb610
cmp qword [rsi], r14
je 0x140066839
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140066874
cmp r15, 2
jb 0x140066831
mov qword [rsi], r14
call fcn.1400eb610
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14006685e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400eb610
mov rcx, qword [rdi]
call fcn.1400de840
mov qword [rdi], 0
jmp 0x14006684f
call fcn.1400eb610
mov rcx, qword [rsi]
call fcn.1400de840
mov qword [rsi], 0
jmp 0x140066823

Function at 0x140066c40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x40], r12
movaps xmm0, xmmword [0x1401e7a90]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x97
call fcn.1400eb5f0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400e22c0
test esi, esi
js 0x140066d4a
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.1400f7f70
test al, al
jne 0x140066d51
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.1400f8000
lea rcx, [rsp + 0x50]
call fcn.1400e2500
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140110d20
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140066d1d
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140181520
jmp 0x140066ce2
Function at 0x140066d70
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x40], r14
movaps xmm0, xmmword [0x1401e7a90]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xac
call fcn.1400eb5f0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e22c0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.1400f7f70
test al, al
jne 0x140066e50
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.1400f8000
lea rcx, [rsp + 0x50]
call fcn.1400e2500
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140110d20
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140181520
jmp 0x140066dfd

Function at 0x140066e70
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x40], r15
movaps xmm0, xmmword [0x1401e7a90]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xb9
call fcn.1400eb5f0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400e22c0
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.1400f7f70
test al, al
jne 0x140066f9c
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140066f63
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140066f63
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140066f98
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.1400f8000
lea rcx, [rsp + 0x50]
call fcn.1400e2500
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140110d20
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140066f63
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.140181520
jmp 0x140066f06