joyce8/EMBER2024-capa huggingface dataset:
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.14014def0
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.140115d38
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.140115d38
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.140115d38
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.140115d24
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.140115d24
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.140115d24
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 [0x1402854d8]
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.1401338c4
jmp 0x140039695
mov rcx, rdi
call fcn.14011868c
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.1401338c4
jmp 0x1400396e3
mov rcx, rdi
call fcn.14011868c
test eax, eax
jne 0x1400396fe
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14013337c
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.140130308
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140107f60
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x104
call fcn.140115e08
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.1401338c4
jmp 0x1400397ab
lea rcx, [rsp + 0x50]
call fcn.14011868c
test eax, eax
jne 0x1400397c4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14013337c
mov ebx, eax
test eax, eax
je 0x14003980d
lea rcx, [rsp + 0x50]
call fcn.140133640
mov ebx, eax
test eax, eax
je 0x14003980d
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.140108668
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.140133640
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140106650
add rsp, 0x170
pop rdi
ret
call fcn.1401067b4
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 [0x1402854d8]
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.140044360
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.1400405a0
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.140044850
test rax, rax
je 0x14003bf0a
lfence
nop dword [rax + rax]
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1400416f0
mov rcx, qword [rbx + 0x108]
mov r8d, 0x1000
mov rdx, rdi
call fcn.140044850
test rax, rax
jne 0x14003bee0
lea rcx, [rsp + 0x20]
call fcn.140041420
mov r8d, 0x20
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x24]
call fcn.140108190
test eax, eax
mov ecx, 0xbbd
cmovne esi, ecx
mov rcx, rdi
call fcn.140115d24
mov rdi, qword [rsp + 0x180]
mov rcx, qword [rbx + 0x108]
xor r8d, r8d
mov rdx, r14
call fcn.140044a10
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.140106650
add rsp, 0x158
pop rbx
pop rbp
ret
Function at 0x140040510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140040568
bt eax, 0xa
jae 0x140040568
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140040555
test al, 0x10
je 0x140040555
mov rcx, rbx
call fcn.1401338c4
jmp 0x14004055d
mov rcx, rbx
call fcn.14011868c
test eax, eax
je 0x140040568
mov ecx, 0x1f
jmp 0x140040577
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14013337c
mov ecx, eax
xor eax, eax
test ecx, ecx
sete al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140106650
add rsp, 0x60
pop rbx
ret
Function at 0x140041610
Capabilities:
Hash data using sha1
Hash data using sha256

Disassembly:
test rcx, rcx
je 0x1400416b5
xorps xmm0, xmm0
movzx edx, dx
movups xmmword [rcx], xmm0
xor eax, eax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
sub edx, 1
je 0x14004168c
cmp edx, 0xff
jne 0x1400416b5
mov dword [rcx], 0x40200100
mov dword [rcx + 4], 0x6a09e667
mov dword [rcx + 8], 0xbb67ae85
mov dword [rcx + 0xc], 0x3c6ef372
mov dword [rcx + 0x10], 0xa54ff53a
mov dword [rcx + 0x14], 0x510e527f
mov dword [rcx + 0x18], 0x9b05688c
mov dword [rcx + 0x1c], 0x1f83d9ab
mov dword [rcx + 0x20], 0x5be0cd19
ret
mov dword [rcx], 0x40140001
mov dword [rcx + 4], 0x67452301
mov dword [rcx + 8], 0xefcdab89
mov dword [rcx + 0xc], 0x98badcfe
mov dword [rcx + 0x10], 0x10325476
mov dword [rcx + 0x14], 0xc3d2e1f0
ret
Function at 0x1400443a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400443da
mov edx, dword [rcx]
sub edx, 1
je 0x1400443ee
cmp edx, 1
jne 0x1400443da
mov rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140106650
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140106650
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 0x140044433
bt eax, 0xa
jae 0x140044433
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140044427
test al, 0x10
je 0x140044427
mov rcx, rbx
call fcn.1401338c4
jmp 0x14004442f
mov rcx, rbx
call fcn.14011868c
test eax, eax
jne 0x14004444b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14013337c
test eax, eax
jne 0x14004444b
movsxd rax, dword [rsp + 0x34]
jmp 0x14004444d
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140106650
add rsp, 0x68
ret
Function at 0x140044600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rsi, [0x1401841d4]
mov rbx, rcx
test rcx, rcx
jne 0x140044630
lea eax, [rcx + 0x16]
jmp 0x140044798
mov qword [rsp + 0x70], rdi
call fcn.1400440d0
mov ecx, dword [rbx]
sub ecx, 1
je 0x140044664
cmp ecx, 1
jne 0x14004465a
cmp qword [rbx + 8], 0
je 0x14004465a
xor edi, edi
mov qword [rbx + 0x20], rdi
mov eax, edi
jmp 0x140044793
mov eax, 1
jmp 0x140044793
mov rax, qword [rbx + 0x18]
test rax, rax
cmovne rsi, rax
cmp dword [rbx + 4], 2
je 0x140044693
lea rdx, [0x1401847c8]
mov rcx, rsi
call fcn.140134c70
test rax, rax
je 0x140044693
mov eax, 0xd
jmp 0x140044793
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 0x1400446ec
bt eax, 0xa
jae 0x1400446ec
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400446d3
test al, 0x10
je 0x1400446d3
mov rcx, rbp
call fcn.1401338c4
jmp 0x1400446db
mov rcx, rbp
call fcn.14011868c
test eax, eax
je 0x1400446ec
mov rcx, rdi
mov eax, 0x1f
jmp 0x14004478a
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.140115e08
lea rdx, [0x1401847c8]
mov rcx, rsi
call fcn.140134c70
test rax, rax
je 0x14004476d
mov edx, 0x63
mov rcx, rsi
call fcn.140108100
test rax, rax
jne 0x14004476d
lea edx, [rax + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140130308
cmp rax, 0x20
jne 0x140044751
mov byte [rsp + 0x47], dil
jmp 0x14004476d
mov r9, 0xffffffffffffffff
lea r8, [0x1401847cc]
lea rcx, [rsp + 0x28]
lea edx, [r9 + 0x21]
call fcn.140146e94
lea r8, [rsp + 0x28]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140147264
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.140106650
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
Function at 0x140044c10
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 0x140044d0f
test rdx, rdx
je 0x140044d0f
cmp dword [rcx + 4], 2
jne 0x140044d0f
mov ecx, dword [rcx]
sub ecx, 1
je 0x140044cf6
cmp ecx, 1
jne 0x140044d0f
mov rax, qword [rdi + 0x20]
mov rsi, qword [rdi + 8]
lea rbp, [rax + r8]
test rsi, rsi
je 0x140044c7c
cmp qword [rdi + 0x10], rbp
jae 0x140044ccd
and rbp, 0xfffffffffffffe00
mov qword [rsp + 0x40], rbx
add rbp, 0x200
mov rcx, rsi
mov rdx, rbp
mov rbx, rsi
call fcn.14012f8d4
test rbx, rbx
mov rsi, rax
mov rbx, qword [rsp + 0x40]
jne 0x140044cbc
test rax, rax
je 0x140044d0f
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140107f60
test rsi, rsi
je 0x140044d0f
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.140044df0
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 0x140044d0f
mov r9, qword [rdi + 0x10]
test r9, r9
je 0x140044d0f
mov edx, 1
mov rcx, r12
call fcn.140148b4c
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 0x140049b50
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 0x140049b8b
mov edx, 0x104
mov rcx, rsi
call fcn.140130308
mov rbp, rax
jmp 0x140049b8d
mov ebp, edi
imul rbx, rbx, 0x38
lea r12, [0x1402878f0]
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 0x140049cfc
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.14012f7a4
test eax, eax
mov rcx, 0xffffffffffffffff
cmovs eax, ecx
movsxd r12, eax
add r12, 2
mov rcx, r12
lea r13d, [rax + 2]
call fcn.140115d38
mov rbx, rax
test rax, rax
je 0x140049cf7
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.140107f60
mov r9, r15
mov qword [rsp + 0x20], r14
mov r8, 0xffffffffffffffff
mov rdx, r12
mov rcx, rbx
call fcn.14004c3b0
mov r9d, eax
test r12, r12
je 0x140049c45
cmp eax, 0xffffffff
jne 0x140049c45
lea r9d, [r13 - 1]
mov rax, rbx
cmp byte [rbx], dil
je 0x140049c63
nop dword [rax]
cmp byte [rax + 1], dil
je 0x140049c63
cmp byte [rax], 0xa
jne 0x140049c5e
mov byte [rax], 9
inc rax
jmp 0x140049c50
test rsi, rsi
je 0x140049cbb
cmp r9d, ebp
jle 0x140049cbb
lea edi, [r9 + rbp]
cmp edi, r13d
jge 0x140049cbb
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 0x140049ca3
inc rax
test ecx, ecx
jne 0x140049c90
test edx, edx
je 0x140049cbb
lfence
mov r8, r12
mov rdx, rsi
mov rcx, rbx
call fcn.14004a200
mov r9d, edi
mov rsi, qword [rsp + 0x78]
lea rbp, [0x1402878f0]
movsxd r8, r9d
mov edx, 1
mov rcx, rbx
mov r9, qword [rsi + rbp + 0x28]
call fcn.140148b4c
cmp byte [rsi + rbp + 0x30], 0
mov edi, eax
je 0x140049cef
mov rcx, qword [rsi + rbp + 0x28]
call fcn.140147db0
mov rcx, rbx
call fcn.140115d24
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 0x140049f60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x1402854d8]
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 0x140049fd3
bt eax, 0xa
jae 0x140049fd3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140049fbd
test al, 0x10
je 0x140049fbd
mov rcx, rdi
call fcn.1401338c4
jmp 0x140049fc5
mov rcx, rdi
call fcn.14011868c
test eax, eax
je 0x140049fd3
mov eax, 0x1f
jmp 0x14004a147
mov rcx, rdi
mov qword [rsp + 0x188], rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14004a017
bt eax, 0xa
jae 0x14004a017
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14004a00b
test al, 0x10
je 0x14004a00b
mov rcx, rdi
call fcn.1401338c4
jmp 0x14004a013
mov rcx, rdi
call fcn.14011868c
test eax, eax
jne 0x14004a02e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14013337c
mov ebx, eax
test eax, eax
je 0x14004a13d
test rdi, rdi
jne 0x14004a037
xor ebx, ebx
jmp 0x14004a047
mov edx, 0x104
mov rcx, rdi
call fcn.140130308
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140107f60
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x104
call fcn.140115e08
lea rcx, [rbx - 2]
cmp rcx, 0x102
ja 0x14004a09b
cmp byte [rsp + rbx + 0x4f], 0x5c
jne 0x14004a09b
dec rbx
cmp rbx, 0x104
jae 0x14004a160
mov byte [rsp + rbx + 0x50], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14004a0df
bt eax, 0xa
jae 0x14004a0df
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14004a0d1
test al, 0x10
je 0x14004a0d1
lea rcx, [rsp + 0x50]
call fcn.1401338c4
jmp 0x14004a0db
lea rcx, [rsp + 0x50]
call fcn.14011868c
test eax, eax
jne 0x14004a0f4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14013337c
mov ebx, eax
test eax, eax
je 0x14004a13d
lea rcx, [rsp + 0x50]
call fcn.140133640
mov ebx, eax
test eax, eax
je 0x14004a13d
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.140108668
mov rdi, rax
test rax, rax
je 0x14004a13d
lea rcx, [rsp + 0x50]
mov byte [rax], 0
call fcn.140049f60
mov ebx, eax
test eax, eax
jne 0x14004a13d
lea rcx, [rsp + 0x50]
mov byte [rdi], 0x5c
call fcn.140133640
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140106650
add rsp, 0x170
pop rdi
ret
call fcn.1401067b4
int3