joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x40
mov rbx, rcx
xor ecx, ecx
mov ebp, r8d
mov r12d, edx
xor edi, edi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
test rbx, rbx
je 0x140033a82
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x140033977
cmp ax, 0x2f
je 0x140033977
movzx ecx, ax
call fcn.1401113a0
test eax, eax
je 0x140033a82
cmp word [rbx + 2], 0x3a
jne 0x140033a82
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x140033977
cmp ax, 0x2f
jne 0x140033a82
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140033a66
test al, 0x50
jne 0x140033a66
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400339e4
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, rdi
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x60]
test ebp, ebp
mov rcx, rbx
cmove rdx, rdi
mov dword [rsp + 0x60], edi
call fcn.1400329b0
test eax, eax
je 0x140033a14
test ebp, ebp
je 0x140033a28
cmp dword [rsp + 0x60], edi
jne 0x140033a28
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.DLL_SetLastError]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rbx
mov edx, eax
call fcn.140032f90
test eax, eax
je 0x140033a40
and r12d, 0xffffe8f7
xor edx, edx
mov rcx, rbx
mov r8d, r12d
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x140033a5e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, rdi
jmp 0x1400339d1
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
Function at 0x140034980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ecx, ecx
xor esi, esi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
test rdi, rdi
je 0x140034b8d
mov rcx, rdi
call fcn.14002c070
test eax, eax
jne 0x140034b8d
mov rcx, rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
call fcn.1400346c0
mov rbp, rax
test rax, rax
je 0x140034a9e
mov qword [rsp + 0x50], r12
call fcn.14002d190
mov r12, rax
test rax, rax
je 0x140034a8b
mov rcx, rbp
call fcn.14002c070
test eax, eax
je 0x140034a74
lea rax, str.system32_
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
mov rdx, qword [rbx]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdi, [rcx - 1]
mov rcx, rbp
call fcn.140148000
test eax, eax
je 0x140034a47
lea rax, [rsp + 0x30]
add rbx, 8
cmp rbx, rax
jb 0x140034a11
jmp 0x140034a57
lea rdx, [rbp + rdi*2]
mov rcx, r12
call fcn.1400337a0
mov rsi, rax
lea rax, [rsp + 0x30]
cmp rbx, rax
jne 0x140034a82
mov rcx, rbp
call fcn.14002c0d0
test eax, eax
je 0x140034a82
mov rsi, rbp
xor ebp, ebp
jmp 0x140034a82
mov rdx, rbp
mov rcx, r12
call fcn.1400337a0
mov rsi, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov r12, qword [rsp + 0x50]
jmp 0x140034b3d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7e
jne 0x140034b62
mov rcx, rdi
call fcn.14002ed60
mov rbx, rax
test rax, rax
je 0x140034b62
mov ecx, 0x37e4
call fcn.14002e940
test eax, eax
je 0x140034adb
xor ecx, ecx
call fcn.1400334c0
mov rdi, rax
jmp 0x140034ae3
call fcn.14002d190
mov rdi, rax
test rdi, rdi
je 0x140034b34
mov rdx, rbx
mov rcx, rdi
call fcn.1400337a0
mov rsi, rax
test rax, rax
je 0x140034b2b
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034b0d
test al, 0x50
je 0x140034b2b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x140034b20
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
test rsi, rsi
je 0x140034b62
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x140034b75
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140035320
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x40
mov r13, rcx
mov rbp, r8
mov ecx, 0x39
mov r12, rdx
call fcn.140110008
mov rbx, rax
test rax, rax
je 0x14003551d
xorps xmm0, xmm0
mov qword [rsp + 0x70], rsi
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rsp + 0x78], r14
movups xmmword [rbx + 0x10], xmm0
mov qword [rsp + 0x80], r15
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], rax
lea ecx, [rax + 0x24]
mov byte [rbx + 0x38], al
call fcn.140110008
xor r15d, r15d
lea rsi, [rbx + 8]
mov r14, rax
test rax, rax
je 0x14003546a
mov qword [rax], r15
lea edx, [r15 + 1]
mov qword [rax + 8], r15
xor r9d, r9d
mov qword [rax + 0x18], r15
xor r8d, r8d
mov dword [rax + 0x20], r15d
xor ecx, ecx
mov qword [rsi], rax
mov rax, qword [rbx + 0x20]
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
mov qword [r14], rax
test rax, rax
jne 0x1400353cd
mov edi, 0x3f0
jmp 0x14003546f
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rdx, qword [r14]
mov r9, rbx
mov dword [rsp + 0x30], r15d
mov r8, rax
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
jne 0x140035402
mov edi, 0x3f0
jmp 0x14003546f
mov ecx, 0x10
mov edi, r15d
call fcn.140110008
mov r15, rax
test rax, rax
jne 0x14003541e
mov edi, 0x708
jmp 0x140035461
lea rax, [0x140035690]
mov qword [r15 + 8], r14
mov qword [r15], rax
lea r8, [0x140035c80]
xor eax, eax
mov r9, r15
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [r14 + 8], rax
test rax, rax
jne 0x140035461
mov rcx, r15
call fcn.14010fff4
mov edi, 0x3eb
test edi, edi
je 0x1400354b6
xor r15d, r15d
jmp 0x14003546f
mov edi, 0x708
mov rax, qword [rsi]
test rax, rax
je 0x14003547e
mov dword [rax + 0x20], 1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140035498
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx], r15
test r14, r14
je 0x1400354b6
mov rcx, qword [r14]
test rcx, rcx
je 0x1400354ae
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [r14], r15
mov rcx, r14
call fcn.14010fff4
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x78]
test edi, edi
jne 0x1400354e6
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r12
mov qword [rbp], rbx
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
mov rax, qword [rsi]
test rax, rax
je 0x1400354f5
mov dword [rax + 0x20], 1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140035513
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx], 0
mov rcx, rbx
call fcn.14010fff4
jmp 0x1400354d3
mov eax, 0x708
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140039630
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x14027aef8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xorps xmm0, xmm0
mov rdi, rcx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400396a3
bt eax, 0xa
jae 0x1400396a3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14003968d
test al, 0x10
je 0x14003968d
mov rcx, rdi
call fcn.14012db94
jmp 0x140039695
mov rcx, rdi
call fcn.14011295c
test eax, eax
je 0x1400396a3
mov eax, 0x1f
jmp 0x140039817
mov rcx, rdi
mov qword [rsp + 0x188], rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400396e7
bt eax, 0xa
jae 0x1400396e7
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400396db
test al, 0x10
je 0x1400396db
mov rcx, rdi
call fcn.14012db94
jmp 0x1400396e3
mov rcx, rdi
call fcn.14011295c
test eax, eax
jne 0x1400396fe
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14012d64c
mov ebx, eax
test eax, eax
je 0x14003980d
test rdi, rdi
jne 0x140039707
xor ebx, ebx
jmp 0x140039717
mov edx, 0x104
mov rcx, rdi
call fcn.14012a5d8
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140102230
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x104
call fcn.1401100d8
lea rcx, [rbx - 2]
cmp rcx, 0x102
ja 0x14003976b
cmp byte [rsp + rbx + 0x4f], 0x5c
jne 0x14003976b
dec rbx
cmp rbx, 0x104
jae 0x140039830
mov byte [rsp + rbx + 0x50], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400397af
bt eax, 0xa
jae 0x1400397af
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400397a1
test al, 0x10
je 0x1400397a1
lea rcx, [rsp + 0x50]
call fcn.14012db94
jmp 0x1400397ab
lea rcx, [rsp + 0x50]
call fcn.14011295c
test eax, eax
jne 0x1400397c4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14012d64c
mov ebx, eax
test eax, eax
je 0x14003980d
lea rcx, [rsp + 0x50]
call fcn.14012d910
mov ebx, eax
test eax, eax
je 0x14003980d
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.140102938
mov rdi, rax
test rax, rax
je 0x14003980d
lea rcx, [rsp + 0x50]
mov byte [rax], 0
call fcn.140039630
mov ebx, eax
test eax, eax
jne 0x14003980d
lea rcx, [rsp + 0x50]
mov byte [rdi], 0x5c
call fcn.14012d910
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140100920
add rsp, 0x170
pop rdi
ret
call fcn.140100a84
int3
Function at 0x14003bd90
Capabilities:
Hash data using sha256

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x68]
sub rsp, 0x158
mov rax, qword [0x14027aef8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
test rcx, rcx
je 0x14003bf68
mov rcx, qword [rcx + 0x108]
test rcx, rcx
je 0x14003bf68
mov qword [r11 + 0x10], rsi
mov qword [r11 - 0x18], r14
call fcn.140044230
xorps xmm0, xmm0
lea rdx, [rbp - 0x60]
mov r14, rax
mov rcx, rbx
xor eax, eax
mov dword [rbp + 0x30], eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
call fcn.14003b9b0
mov esi, eax
test eax, eax
jne 0x14003bf42
mov eax, dword [rbp - 0x5c]
and eax, 0xff000000
cmp eax, 0x2000000
jne 0x14003bf42
mov ecx, 0x1000
mov qword [rsp + 0x180], rdi
call fcn.1400404e0
mov rdi, rax
test rax, rax
jne 0x14003be53
mov esi, 0x708
jmp 0x14003bf3a
mov rcx, qword [rbx + 0x108]
xorps xmm0, xmm0
xor eax, eax
mov dword [rsp + 0x20], 0x40200100
mov r8d, 0x1000
mov dword [rbp - 0x6c], eax
mov rdx, rdi
mov dword [rsp + 0x24], 0x6a09e667
movups xmmword [rsp + 0x44], xmm0
mov dword [rsp + 0x28], 0xbb67ae85
movups xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x2c], 0x3c6ef372
movups xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x30], 0xa54ff53a
movups xmmword [rsp + 0x74], xmm0
mov dword [rsp + 0x34], 0x510e527f
movups xmmword [rbp - 0x7c], xmm0
mov dword [rsp + 0x38], 0x9b05688c
mov dword [rsp + 0x3c], 0x1f83d9ab
mov dword [rsp + 0x40], 0x5be0cd19
call fcn.140044720
test rax, rax
je 0x14003bf0a
lfence
nop dword [rax + rax]
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140041630
mov rcx, qword [rbx + 0x108]
mov r8d, 0x1000
mov rdx, rdi
call fcn.140044720
test rax, rax
jne 0x14003bee0
lea rcx, [rsp + 0x20]
call fcn.140041360
mov r8d, 0x20
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x24]
call fcn.140102460
test eax, eax
mov ecx, 0xbbd
cmovne esi, ecx
mov rcx, rdi
call fcn.14010fff4
mov rdi, qword [rsp + 0x180]
mov rcx, qword [rbx + 0x108]
xor r8d, r8d
mov rdx, r14
call fcn.1400448e0
mov r14, qword [rsp + 0x150]
mov eax, esi
mov rsi, qword [rsp + 0x178]
jmp 0x14003bf6d
mov eax, 0x8fc
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140100920
add rsp, 0x158
pop rbx
pop rbp
ret
Function at 0x140040450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14027aef8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400404a8
bt eax, 0xa
jae 0x1400404a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140040495
test al, 0x10
je 0x140040495
mov rcx, rbx
call fcn.14012db94
jmp 0x14004049d
mov rcx, rbx
call fcn.14011295c
test eax, eax
je 0x1400404a8
mov ecx, 0x1f
jmp 0x1400404b7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14012d64c
mov ecx, eax
xor eax, eax
test ecx, ecx
sete al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140100920
add rsp, 0x60
pop rbx
ret
Function at 0x140044270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14027aef8]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400442aa
mov edx, dword [rcx]
sub edx, 1
je 0x1400442be
cmp edx, 1
jne 0x1400442aa
mov rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140100920
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140100920
add rsp, 0x68
ret
mov qword [rsp + 0x60], rbx
mov rbx, qword [rcx + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140044303
bt eax, 0xa
jae 0x140044303
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400442f7
test al, 0x10
je 0x1400442f7
mov rcx, rbx
call fcn.14012db94
jmp 0x1400442ff
mov rcx, rbx
call fcn.14011295c
test eax, eax
jne 0x14004431b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14012d64c
test eax, eax
jne 0x14004431b
movsxd rax, dword [rsp + 0x34]
jmp 0x14004431d
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140100920
add rsp, 0x68
ret
Function at 0x1400444d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x14027aef8]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rsi, [0x14017d854]
mov rbx, rcx
test rcx, rcx
jne 0x140044500
lea eax, [rcx + 0x16]
jmp 0x140044668
mov qword [rsp + 0x70], rdi
call fcn.140043fa0
mov ecx, dword [rbx]
sub ecx, 1
je 0x140044534
cmp ecx, 1
jne 0x14004452a
cmp qword [rbx + 8], 0
je 0x14004452a
xor edi, edi
mov qword [rbx + 0x20], rdi
mov eax, edi
jmp 0x140044663
mov eax, 1
jmp 0x140044663
mov rax, qword [rbx + 0x18]
test rax, rax
cmovne rsi, rax
cmp dword [rbx + 4], 2
je 0x140044563
lea rdx, [0x14017de48]
mov rcx, rsi
call fcn.14012ef40
test rax, rax
je 0x140044563
mov eax, 0xd
jmp 0x140044663
mov qword [rsp + 0x68], rbp
xor edi, edi
mov rbp, qword [rbx + 8]
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400445bc
bt eax, 0xa
jae 0x1400445bc
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400445a3
test al, 0x10
je 0x1400445a3
mov rcx, rbp
call fcn.14012db94
jmp 0x1400445ab
mov rcx, rbp
call fcn.14011295c
test eax, eax
je 0x1400445bc
mov rcx, rdi
mov eax, 0x1f
jmp 0x14004465a
xorps xmm0, xmm0
lea rcx, [rsp + 0x28]
mov r9, 0xffffffffffffffff
mov r8, rsi
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
lea edx, [r9 + 0x21]
call fcn.1401100d8
lea rdx, [0x14017de48]
mov rcx, rsi
call fcn.14012ef40
test rax, rax
je 0x14004463d
mov edx, 0x63
mov rcx, rsi
call fcn.1401023d0
test rax, rax
jne 0x14004463d
lea edx, [rax + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14012a5d8
cmp rax, 0x20
jne 0x140044621
mov byte [rsp + 0x47], dil
jmp 0x14004463d
mov r9, 0xffffffffffffffff
lea r8, [0x14017de4c]
lea rcx, [rsp + 0x28]
lea edx, [r9 + 0x21]
call fcn.140141164
lea r8, [rsp + 0x28]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140141534
mov rcx, qword [rsp + 0x20]
test rcx, rcx
cmovne eax, edi
mov rbp, qword [rsp + 0x68]
mov qword [rbx + 0x10], rcx
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140100920
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
Function at 0x140044ae0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov r14, r8
mov r12, rdx
mov rdi, rcx
test rcx, rcx
je 0x140044bdf
test rdx, rdx
je 0x140044bdf
cmp dword [rcx + 4], 2
jne 0x140044bdf
mov ecx, dword [rcx]
sub ecx, 1
je 0x140044bc6
cmp ecx, 1
jne 0x140044bdf
mov rax, qword [rdi + 0x20]
mov rsi, qword [rdi + 8]
lea rbp, [rax + r8]
test rsi, rsi
je 0x140044b4c
cmp qword [rdi + 0x10], rbp
jae 0x140044b9d
and rbp, 0xfffffffffffffe00
mov qword [rsp + 0x40], rbx
add rbp, 0x200
mov rcx, rsi
mov rdx, rbp
mov rbx, rsi
call fcn.140129ba4
test rbx, rbx
mov rsi, rax
mov rbx, qword [rsp + 0x40]
jne 0x140044b8c
test rax, rax
je 0x140044bdf
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140102230
test rsi, rsi
je 0x140044bdf
mov rax, qword [rdi + 0x20]
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rbp
lea rcx, [rsi + rax]
mov r8, r14
mov rdx, r12
call fcn.140044cc0
add qword [rdi + 0x20], r14
mov r15, r14
mov rcx, qword [rdi + 0x20]
cmp rcx, qword [rdi + 0x18]
cmovbe rcx, qword [rdi + 0x18]
mov qword [rdi + 0x18], rcx
jmp 0x140044bdf
mov r9, qword [rdi + 0x10]
test r9, r9
je 0x140044bdf
mov edx, 1
mov rcx, r12
call fcn.140142e1c
mov r15, rax
mov rbp, qword [rsp + 0x48]
mov rax, r15
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140047520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor edi, edi
movsxd rbx, ecx
mov r14, r9
mov r15, r8
mov rsi, rdx
test rdx, rdx
je 0x14004755b
mov edx, 0x104
mov rcx, rsi
call fcn.14012a5d8
mov rbp, rax
jmp 0x14004755d
mov ebp, edi
imul rbx, rbx, 0x38
lea r12, [0x14027d300]
mov qword [rsp + 0x78], rbx
lea rax, [rbx + r12]
mov rcx, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.DLL_AcquireSRWLockExclusive]
cmp qword [rbx + r12 + 0x28], rdi
je 0x1400476cc
mov qword [rsp + 0x70], r13
call fcn.140039620
mov qword [rsp + 0x28], r14
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rcx, qword [rax]
or rcx, 2
call fcn.140129a74
test eax, eax
mov rcx, 0xffffffffffffffff
cmovs eax, ecx
movsxd r12, eax
add r12, 2
mov rcx, r12
lea r13d, [rax + 2]
call fcn.140110008
mov rbx, rax
test rax, rax
je 0x1400476c7
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.140102230
mov r9, r15
mov qword [rsp + 0x20], r14
mov r8, 0xffffffffffffffff
mov rdx, r12
mov rcx, rbx
call fcn.140049d80
mov r9d, eax
test r12, r12
je 0x140047615
cmp eax, 0xffffffff
jne 0x140047615
lea r9d, [r13 - 1]
mov rax, rbx
cmp byte [rbx], dil
je 0x140047633
nop dword [rax]
cmp byte [rax + 1], dil
je 0x140047633
cmp byte [rax], 0xa
jne 0x14004762e
mov byte [rax], 9
inc rax
jmp 0x140047620
test rsi, rsi
je 0x14004768b
cmp r9d, ebp
jle 0x14004768b
lea edi, [r9 + rbp]
cmp edi, r13d
jge 0x14004768b
lfence
movsxd rcx, ebp
mov r8, rsi
movsxd rax, r9d
sub rax, rcx
add rax, rbx
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140047673
inc rax
test ecx, ecx
jne 0x140047660
test edx, edx
je 0x14004768b
lfence
mov r8, r12
mov rdx, rsi
mov rcx, rbx
call fcn.140047bd0
mov r9d, edi
mov rsi, qword [rsp + 0x78]
lea rbp, [0x14027d300]
movsxd r8, r9d
mov edx, 1
mov rcx, rbx
mov r9, qword [rsi + rbp + 0x28]
call fcn.140142e1c
cmp byte [rsi + rbp + 0x30], 0
mov edi, eax
je 0x1400476bf
mov rcx, qword [rsi + rbp + 0x28]
call fcn.140142080
mov rcx, rbx
call fcn.14010fff4
mov r13, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_ReleaseSRWLockExclusive]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140047930
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x14027aef8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xorps xmm0, xmm0
mov rdi, rcx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400479a3
bt eax, 0xa
jae 0x1400479a3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14004798d
test al, 0x10
je 0x14004798d
mov rcx, rdi
call fcn.14012db94
jmp 0x140047995
mov rcx, rdi
call fcn.14011295c
test eax, eax
je 0x1400479a3
mov eax, 0x1f
jmp 0x140047b17
mov rcx, rdi
mov qword [rsp + 0x188], rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400479e7
bt eax, 0xa
jae 0x1400479e7
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400479db
test al, 0x10
je 0x1400479db
mov rcx, rdi
call fcn.14012db94
jmp 0x1400479e3
mov rcx, rdi
call fcn.14011295c
test eax, eax
jne 0x1400479fe
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14012d64c
mov ebx, eax
test eax, eax
je 0x140047b0d
test rdi, rdi
jne 0x140047a07
xor ebx, ebx
jmp 0x140047a17
mov edx, 0x104
mov rcx, rdi
call fcn.14012a5d8
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140102230
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x104
call fcn.1401100d8
lea rcx, [rbx - 2]
cmp rcx, 0x102
ja 0x140047a6b
cmp byte [rsp + rbx + 0x4f], 0x5c
jne 0x140047a6b
dec rbx
cmp rbx, 0x104
jae 0x140047b30
mov byte [rsp + rbx + 0x50], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140047aaf
bt eax, 0xa
jae 0x140047aaf
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140047aa1
test al, 0x10
je 0x140047aa1
lea rcx, [rsp + 0x50]
call fcn.14012db94
jmp 0x140047aab
lea rcx, [rsp + 0x50]
call fcn.14011295c
test eax, eax
jne 0x140047ac4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14012d64c
mov ebx, eax
test eax, eax
je 0x140047b0d
lea rcx, [rsp + 0x50]
call fcn.14012d910
mov ebx, eax
test eax, eax
je 0x140047b0d
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.140102938
mov rdi, rax
test rax, rax
je 0x140047b0d
lea rcx, [rsp + 0x50]
mov byte [rax], 0
call fcn.140047930
mov ebx, eax
test eax, eax
jne 0x140047b0d
lea rcx, [rsp + 0x50]
mov byte [rdi], 0x5c
call fcn.14012d910
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140100920
add rsp, 0x170
pop rdi
ret
call fcn.140100a84
int3