joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8160
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a81bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154660
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154660
add rsp, 0x40
pop rbx
ret

Function at 0x1400a83b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a83e5
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400a83f0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a844d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154660
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154660
add rsp, 0x40
pop rbx
ret

Function at 0x1400a8b60
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a8bbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154660
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154660
add rsp, 0x40
pop rbx
ret

Function at 0x1400a8be0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a8c15
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400a8cf0
Capabilities:
Get volume information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x20]
test rbx, rbx
je 0x1400a8dca
cmp word [rbx + 0x12], 0xa
jne 0x1400a8dca
mov ecx, 0x98
call fcn.14015450c
mov qword [rsp + 0x30], rax
xor ecx, ecx
test rax, rax
je 0x1400a8d66
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rcx
mov rcx, rax
call fcn.140038810
mov rcx, rax
mov qword [rdi + 0x30], rcx
test rcx, rcx
jne 0x1400a8db3
lea rax, [0x1402daa50]
mov rcx, qword [0x1402daa50]
cmp rcx, rax
je 0x1400a8da3
test byte [rcx + 0x44], 1
je 0x1400a8da3
cmp byte [rcx + 0x41], 2
jb 0x1400a8da3
mov edx, 0xa
lea r8, [0x140263768]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov eax, 0xe
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x30]
movzx edx, word [rax + 8]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400389b0
mov eax, 0xd
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400aa480
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x1402daa50]
lea r13, [0x1402daa50]
cmp rcx, r13
je 0x1400aa4c7
test byte [rcx + 0x44], 2
je 0x1400aa4c7
cmp byte [rcx + 0x41], 4
jb 0x1400aa4c7
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
mov edx, 0x26
call fcn.140024250
mov rsi, qword [rsi + 0x10]
mov rdx, 0xffffffffffffffff
mov r12, qword [r14 + 0x10]
mov rdi, rdx
nop dword [rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x1400aa4e0
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r12
cmp rax, rdi
jb 0x1400aa6d5
cmp qword [r14 + 0x18], 8
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], r15
jb 0x1400aa51f
mov r14, qword [r14]
xor eax, eax
lea rbp, [rdi + r12]
mov ebx, 7
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x20]
cmp rbp, rbx
jbe 0x1400aa58c
mov rbx, rbp
or rbx, 7
cmp rbx, rcx
jbe 0x1400aa54f
mov rbx, rcx
jmp 0x1400aa55b
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rcx, rbx
movabs rax, 0x7fffffffffffffff
add rcx, 1
cmovb rcx, rdx
cmp rcx, rax
ja 0x1400aa6db
lfence
add rcx, rcx
call fcn.140008ed0
mov r15, rax
mov qword [rsp + 0x20], rax
lfence
mov qword [rsp + 0x38], rbx
mov rdx, r14
lea rbx, [r12 + r12]
mov qword [rsp + 0x30], rbp
mov r8, rbx
mov rcx, r15
call fcn.140145e70
lea r8, [rdi + rdi]
mov rdx, rsi
lea rcx, [rbx + r15]
call fcn.140145e70
xor eax, eax
lea rcx, [rsp + 0x20]
mov word [r15 + rbp*2], ax
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x1400aa620
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aa61b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400aa6cf
call fcn.1401544c8
test bl, bl
je 0x1400aa681
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
jne 0x1400aa64d
mov rcx, qword [0x1402daa50]
cmp rcx, r13
je 0x1400aa6ae
test byte [rcx + 0x44], al
je 0x1400aa6ae
cmp byte [rcx + 0x41], 5
jb 0x1400aa6ae
lea edx, [rax + 0x25]
jmp 0x1400aa69e
mov rcx, qword [0x1402daa50]
cmp rcx, r13
je 0x1400aa67d
test byte [rcx + 0x44], 2
je 0x1400aa67d
cmp byte [rcx + 0x41], 5
jb 0x1400aa67d
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
mov edx, 0x28
mov r9d, ebx
call fcn.1400268c0
mov eax, ebx
jmp 0x1400aa6b0
mov rcx, qword [0x1402daa50]
cmp rcx, r13
je 0x1400aa6ae
test byte [rcx + 0x44], 2
je 0x1400aa6ae
cmp byte [rcx + 0x41], 5
jb 0x1400aa6ae
mov edx, 0x29
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
call fcn.140024250
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x90]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
call fcn.1400e3a70
int3
call fcn.140002830
int3
call fcn.140002700
int3
Function at 0x1400aa6f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rcx, qword [0x1402daa50]
lea rsi, [0x1402daa50]
cmp rcx, rsi
je 0x1400aa745
test byte [rcx + 0x44], 2
je 0x1400aa745
cmp byte [rcx + 0x41], 4
jb 0x1400aa745
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
mov edx, 0x3d
call fcn.140024250
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400aa7a9
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x1400aa7a2
test byte [rcx + 0x44], 2
je 0x1400aa7a2
cmp byte [rcx + 0x41], 2
jb 0x1400aa7a2
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
mov edx, 0x3e
mov r9d, eax
call fcn.1400268c0
mov eax, ebx
jmp 0x1400aa901
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, str.BootMigrationPhase
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400aa81e
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x1400aa80c
test byte [rcx + 0x44], 2
je 0x1400aa80c
cmp byte [rcx + 0x41], 2
jb 0x1400aa80c
mov edx, 0x3f
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
mov r9d, ebx
call fcn.1400268c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400aa901
cmp dword [rsp + 0x3c], 4
jne 0x1400aa8c4
cmp dword [rsp + 0x38], 4
jne 0x1400aa8c4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.BootMigrationPhase
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400aa885
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x1400aa80c
test byte [rcx + 0x44], 2
je 0x1400aa80c
cmp byte [rcx + 0x41], 2
jb 0x1400aa80c
mov edx, 0x41
jmp 0x1400aa7f9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x1400aa8c0
test byte [rcx + 0x44], 2
je 0x1400aa8c0
cmp byte [rcx + 0x41], 5
jb 0x1400aa8c0
mov r9d, dword [rdi]
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
mov edx, 0x42
call fcn.1400268c0
xor eax, eax
jmp 0x1400aa901
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x1400aa8f1
test byte [rcx + 0x44], 2
je 0x1400aa8f1
cmp byte [rcx + 0x41], 2
jb 0x1400aa8f1
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
mov edx, 0x40
call fcn.140024250
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x70c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140154660
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400acaa0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rcx, qword [0x1402daa50]
lea rsi, [0x1402daa50]
cmp rcx, rsi
je 0x1400acb25
test byte [rcx + 0x44], 2
je 0x1400acafc
cmp byte [rcx + 0x41], 4
jb 0x1400acafc
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
mov edx, 0x43
call fcn.140024250
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x1400acb25
test byte [rcx + 0x44], 2
je 0x1400acb25
cmp byte [rcx + 0x41], 5
jb 0x1400acb25
mov r9d, dword [rdi]
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
mov edx, 0x44
call fcn.1400268c0
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400acb86
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x1400acb82
test byte [rcx + 0x44], 2
je 0x1400acb82
cmp byte [rcx + 0x41], 2
jb 0x1400acb82
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
mov edx, 0x45
mov r9d, eax
call fcn.1400268c0
mov eax, ebx
jmp 0x1400acc00
mov rcx, qword [rsp + 0x30]
lea rdx, str.BootMigrationPhase
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400acbf3
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x1400acbe4
test byte [rcx + 0x44], 2
je 0x1400acbe4
cmp byte [rcx + 0x41], 2
jb 0x1400acbe4
mov rcx, qword [rcx + 0x38]
lea r8, [0x140263778]
mov edx, 0x46
mov r9d, eax
call fcn.1400268c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400acc00
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154660
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400ad7b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx]
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rax]
call qword [case.0x140047d56.0]
xor ebp, ebp
lea rdx, [rbx + 0x12]
mov r9, rsi
mov dword [rbx + 0x14], eax
mov rcx, rdi
mov qword [rsp + 0x20], rbp
lea r8d, [rbp + 6]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400ad80c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ad876
mov rax, qword [rbx]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov dword [rsp + 0x30], ebp
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140047d56.0]
mov ecx, dword [rsp + 0x30]
add dword [rsi], ecx
test eax, eax
jne 0x1400ad876
mov rbx, qword [rbx + 0x20]
mov eax, ebp
mov dword [rsp + 0x30], ebp
test rbx, rbx
je 0x1400ad870
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], ebp
mov rdx, rdi
mov rcx, rbx
call fcn.1400ad7b0
mov edx, eax
mov eax, dword [rsp + 0x34]
add eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
test edx, edx
jne 0x1400ad872
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1400ad841
mov edx, ebp
add dword [rsi], eax
mov eax, edx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154660
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b2080
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x139], 0
mov rbx, rcx
je 0x1400b209b
call fcn.1400b1c30
mov eax, dword [rbx + 0xc]
xor edi, edi
cmp eax, 1
jne 0x1400b20dd
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
lea rcx, [0x1400d8270]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.140109658
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b20dd
lea eax, [rdi + 0x6e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400b20f7
mov edi, 0x139f
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0xc], 2
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b2110
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0xc]
xor edi, edi
mov rbx, rcx
cmp eax, 1
jne 0x1400b215f
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
lea rcx, [0x1400d8270]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.140109658
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b215f
lea eax, [rdi + 0x6e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400b2179
mov edi, 0x139f
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0xc], 2
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bfa60
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
xor edx, edx
mov qword [rsp + 0x20], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x58], rax
lea rdi, vtable.SqliteStatement.0
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], edx
lea rax, [rcx + 0x10]
mov qword [rsp + 0x38], rax
lea rdx, str.SELECT_FILE_STATE_FROM_FILES_WHERE_FILE_ID___id
mov qword [rsp + 0x40], rdx
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x58], 0
mov r8d, 6
lea rcx, [0x14028bee0]
call fcn.1400e3d60
movzx ecx, byte [rsp + 0x58]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [rsp + 0x58], cl
lea rax, vtable.TransactionSafeStatement.0
mov qword [rsp + 0x28], rax
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.14002ab40
test eax, eax
jne 0x1400bfb13
lea rcx, [rsp + 0x28]
call fcn.14002afd0
cmp eax, 0x64
jne 0x1400bfb67
lea r8, [rsp + 0x20]
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14002aec0
test eax, eax
je 0x1400bfb67
lea rdx, [0x1402daa50]
mov rcx, qword [0x1402daa50]
cmp rcx, rdx
je 0x1400bfb67
test dword [rcx + 0x44], 0x20000
je 0x1400bfb67
cmp byte [rcx + 0x41], 2
jb 0x1400bfb67
mov edx, 0x13
mov r9d, eax
lea r8, [0x140264138]
mov rcx, qword [rcx + 0x38]
call fcn.140038540
movzx ebx, byte [rsp + 0x20]
and bl, 1
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x28]
call fcn.14002b150
nop
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140154660
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400c8fb0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0xc]
mov rbx, rcx
cmp eax, 1
jne 0x1400c8ff0
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
lea rcx, [0x1400d8270]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.140109658
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400c8ff0
lea ebx, [rax + 0x6f]
jmp 0x1400c8ffd
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400c903f
mov ebx, 0x139f
mov rcx, qword [0x1402daa50]
lea rax, [0x1402daa50]
cmp rcx, rax
je 0x1400c9037
test dword [rcx + 0x44], 0x400
je 0x1400c9037
cmp byte [rcx + 0x41], 2
jb 0x1400c9037
mov rcx, qword [rcx + 0x38]
lea r8, [0x140265558]
mov edx, 0x11
mov r9d, ebx
call fcn.1400268c0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0xc], 2
xor edx, edx
mov rcx, qword [rbx + 0x58]
mov qword [rsp + 0x40], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140047d56.0]
mov edi, eax
test eax, eax
je 0x1400c90af
mov rcx, qword [0x1402daa50]
lea rax, [0x1402daa50]
cmp rcx, rax
je 0x1400c90a2
test dword [rcx + 0x44], 0x400
je 0x1400c90a2
cmp byte [rcx + 0x41], 2
jb 0x1400c90a2
mov rcx, qword [rcx + 0x38]
lea r8, [0x140265558]
mov edx, 0x12
mov dword [rsp + 0x20], edi
xor r9d, r9d
call fcn.1400256c0
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400c9330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400ce900
test al, al
je 0x1400c9362
mov rcx, qword [0x1402e0770]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140047d56.0]
xor r8d, r8d
xor edx, edx
mov rcx, rax
add rsp, 0x28
jmp 0x1400b8e00
mov eax, 0x8007139f
add rsp, 0x28
ret
Function at 0x1400cdb90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov rcx, rdx
jb 0x1400cdbaa
mov rcx, qword [rdx]
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rdi, [0x1402daa50]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400cdd0d
test sil, 0x10
je 0x1400cdcba
test sil, 2
je 0x1400cdc67
mov rcx, qword [0x1402daa50]
cmp rcx, rdi
je 0x1400cdc1c
test byte [rcx + 0x44], 0x40
je 0x1400cdc1c
cmp byte [rcx + 0x41], 4
jb 0x1400cdc1c
cmp qword [rbx + 0x18], 8
mov r9, rbx
jb 0x1400cdc00
mov r9, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402656a8]
mov edx, 0x12
call fcn.140033550
mov rcx, qword [0x1402daa50]
test sil, 4
je 0x1400cdc6e
cmp rcx, rdi
je 0x1400cdc55
test byte [rcx + 0x44], 0x40
je 0x1400cdc55
cmp byte [rcx + 0x41], 4
jb 0x1400cdc55
cmp qword [rbx + 0x18], 8
jb 0x1400cdc3d
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402656a8]
mov edx, 0x13
mov r9, rbx
call fcn.140033550
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1402daa50]
cmp rcx, rdi
je 0x1400cdca5
test byte [rcx + 0x44], 0x40
je 0x1400cdca5
cmp byte [rcx + 0x41], 2
jb 0x1400cdca5
cmp qword [rbx + 0x18], 8
jb 0x1400cdc89
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402656a8]
mov edx, 0x14
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.1400385a0
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1402daa50]
cmp rcx, rdi
je 0x1400cdcf8
test byte [rcx + 0x44], 0x40
je 0x1400cdcf8
cmp byte [rcx + 0x41], 2
jb 0x1400cdcf8
cmp qword [rbx + 0x18], 8
jb 0x1400cdcdc
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402656a8]
mov edx, 0x15
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.1400385a0
mov eax, 0x50
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1402daa50]
cmp rcx, rdi
je 0x1400cdd47
test byte [rcx + 0x44], 0x40
je 0x1400cdd47
cmp byte [rcx + 0x41], 4
jb 0x1400cdd47
cmp qword [rbx + 0x18], 8
jb 0x1400cdd2f
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402656a8]
mov edx, 0x16
mov r9, rbx
call fcn.140033550
mov rdi, qword [rsp + 0x40]
mov eax, 2
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
Function at 0x1400cde20
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov r14d, r8d
mov rbx, rdx
mov esi, ebp
test r8d, r8d
je 0x1400cdec0
xor r9d, r9d
mov dword [rsp + 0x40], ebp
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], 0x18
lea edx, [rbp + 1]
lea rcx, str.D:_A_OI_FA___SY__A_OI_FA___BA_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x1400cdebb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1402daa50]
lea rdi, [0x1402daa50]
cmp rcx, rdi
je 0x1400cdeb4
test byte [rcx + 0x44], 0x40
je 0x1400cdeb4
cmp byte [rcx + 0x41], 2
jb 0x1400cdeb4
mov rcx, qword [rcx + 0x38]
lea edx, [rbp + 0x19]
mov r9d, eax
lea r8, [0x1402656a8]
call fcn.140026620
mov eax, ebx
jmp 0x1400cdf77
lea rsi, [rsp + 0x30]
mov rcx, qword [0x1402daa50]
lea rdi, [0x1402daa50]
cmp rcx, rdi
je 0x1400cdf01
test byte [rcx + 0x44], 0x40
je 0x1400cdf01
cmp byte [rcx + 0x41], 4
jb 0x1400cdf01
cmp qword [rbx + 0x18], 8
mov r9, rbx
jb 0x1400cdeec
mov r9, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402656a8]
mov edx, 0x1a
call fcn.140033550
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400cdf0e
mov rcx, qword [rbx]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400cdf61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, qword [0x1402daa50]
cmp rcx, rdi
je 0x1400cdf61
test byte [rcx + 0x44], 0x40
je 0x1400cdf61
cmp byte [rcx + 0x41], 2
jb 0x1400cdf61
cmp qword [rbx + 0x18], 8
jb 0x1400cdf45
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402656a8]
mov edx, 0x1b
mov dword [rsp + 0x20], eax
mov r9, rbx
call fcn.1400335c0
test r14d, r14d
je 0x1400cdf75
test rsi, rsi
je 0x1400cdf75
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140154660
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x1400ce5b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1402e0770]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140047d56.0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x1402e0770]
mov rbx, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x80]
call qword [case.0x140047d56.0]
mov ecx, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rbx, rbx
je 0x1400ce626
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400ce614
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401544c8
add rsp, 0x20
pop rbx
ret