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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x1400aab0a
cmp word [rcx], di
je 0x1400aab0a
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400aaa47
cmp word [rsp + 0x22], 0x3a
jne 0x1400aaa47
cmp edx, 2
jne 0x1400aaa2e
lea rdx, [0x14023f4f8]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400aab0a
jmp 0x1400aaae2
cmp word [rcx], 0x5c
je 0x1400aaa53
cmp word [rcx], 0x2f
jne 0x1400aaa5c
mov word [rcx], di
sub rcx, 2
jmp 0x1400aaa47
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400aaaa3
test byte [rbp + 0x130], 0x10
je 0x1400aaa88
mov rbx, 0xfffffffffffffffe
jmp 0x1400aaa9b
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400aab0a
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x1400aaab8
cmp ax, cx
je 0x1400aaace
cmp cx, 0x2f
jne 0x1400aaac3
cmp ax, cx
je 0x1400aaace
cmp cx, 0x2e
jne 0x1400aab0a
cmp ax, cx
jne 0x1400aab0a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400aaaeb
test al, 0x10
je 0x1400aab0a
mov rbx, 0xfffffffffffffffe
jmp 0x1400aab0a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400aae60
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x1400aaeea
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x1400aaed6
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x1400aaed6
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x1400aaed6
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x1400aaea8
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x1400aaeec
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x1400ab01c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x140534800]
xor r13d, r13d
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov r14d, r13d
test rax, rax
jne 0x1400ab06e
lea r8, [fcn.1400ab190]
lea edx, [rax + 0x10]
mov ecx, 0x260
call fcn.1400bd090
mov qword [0x140534800], rax
mov rdx, rdi
mov rcx, rax
call fcn.1400bcfc8
mov rbx, rax
test rax, rax
je 0x1400ab16f
test r15, r15
lea rbp, [0x140227078]
cmovne rbp, r15
test rsi, rsi
je 0x1400ab09e
cmp word [rsi], r13w
jne 0x1400ab0a5
lea rsi, [0x14023f500]
mov rcx, rbp
call sub.msvcrt.dll_wcslen
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x1404ba214]
add eax, 2
xor edx, edx
add eax, r12d
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x1400ab158
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_wcscpy
test r12d, r12d
je 0x1400ab105
movsxd rax, r12d
cmp word [rbp + rax*2 - 2], 0x5c
je 0x1400ab105
lea rdx, [0x14023f4f8]
mov rcx, r15
call sub.msvcrt.dll_wcscat
mov rdx, rsi
mov rcx, r15
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0xc]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400ab12c
mov dword [rbx + 8], r13d
jmp 0x1400ab13e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400ab141
mov dword [rbx + 8], 1
mov r14, rbx
mov rcx, qword [0x1404ba214]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
jne 0x1400ab16f
mov rcx, qword [0x140534800]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.1400bcefc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400ab33c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.1400bdc70
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x1400ab385
lea ecx, [rbp + 0x5c]
cmp word [rdi + rbx*2 - 2], cx
je 0x1400ab385
mov word [rdi + rbx*2], cx
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.1400bddb0
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rdi + rax*2], bp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ab3ac
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400ab3bf
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x1400ab3c1
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400ab3c8
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x1400ab3d9
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

Function at 0x1400ab3e8
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400ab413
test dl, 2
je 0x1400ab406
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x1400ab415
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400ab41c
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400ab437
test rdx, rdx
je 0x1400ab437
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x1400ab439
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400ab440
Capabilities:
Timestomp file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
movsxd rbx, r8d
mov r14d, edx
test rcx, rcx
je 0x1400ab542
mov qword [rax - 0x38], rdi
lea r8d, [rdi + 3]
mov dword [rax - 0x40], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400ab542
mov rcx, rbx
call fcn.1400abf18
mov rcx, rbx
mov word [rbp - 0x10], ax
call fcn.1400abf54
mov rcx, rbx
mov word [rbp - 0xe], ax
call fcn.1400abf8c
mov rcx, rbx
mov word [rbp - 0xc], ax
call fcn.1400abfc4
mov rcx, rbx
mov word [rbp - 0xa], ax
call fcn.1400abffc
mov rcx, rbx
mov word [rbp - 8], ax
call fcn.1400ac034
mov rcx, rbx
mov word [rbp - 6], ax
call fcn.1400ac06c
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x10]
mov word [rbp - 2], di
mov word [rbp - 4], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov r8d, edi
mov r9d, edi
cmp r14d, 1
jne 0x1400ab51b
lea r8, [rbp + 0x20]
jmp 0x1400ab52b
cmp r14d, 2
jne 0x1400ab527
lea r9, [rbp + 0x20]
jmp 0x1400ab52b
lea rdi, [rbp + 0x20]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x50]
movsxd rax, edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400ad9e4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400ada7d
lea rsi, [0x140227078]
test rdi, rdi
cmovne rsi, rdi
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov ecx, 0x2002
inc eax
movsxd rbp, eax
add rbp, rbp
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400ada77
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400ada77
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rbx + 0xd]
mov rdx, rdi
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rbx, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ada98
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebp, ecx
xor r14d, r14d
xor ecx, ecx
mov ebx, r14d
mov esi, r14d
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400adaf7
lea ecx, [r14 + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x1400adaef
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
test rax, rax
je 0x1400adaef
mov rcx, rax
call sub.msvcrt.dll_wcslen
mov rsi, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400adafc
mov rdi, qword [rsp + 0x48]
mov edx, ebp
mov ecx, esi
call fcn.1400bdc70
test rbx, rbx
je 0x1400adb29
lea ecx, [rsi + 1]
mov rdx, rbx
movsxd r8, ecx
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400adb2d
mov word [rax], r14w
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1400adce0
Capabilities:
Hash data using sha384

Disassembly:
and qword [rcx + 0x80], 0
mov dword [rcx + 0xc8], gethostbyaddr
lea rdx, [0x14023f840]
add rcx, 0x88
mov r8d, IsNetDrive
jmp sub.msvcrt.dll_memcpy

Function at 0x1400ade28
Capabilities:
Hash data using sha512

Disassembly:
and qword [rcx + 0x80], 0
mov r8d, IsNetDrive
lea rdx, [0x14023f800]
mov dword [rcx + 0xc8], r8d
add rcx, 0x88
jmp sub.msvcrt.dll_memcpy
Function at 0x1400aff5c
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x40], 0
mov r8d, 0x20
lea rdx, [0x14023f980]
mov dword [rcx + 0x68], r8d
add rcx, 0x48
jmp sub.msvcrt.dll_memcpy
Function at 0x1400b1828
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
mov al, cl
or al, r10b
or al, r8b
or al, r9b
test al, 3
jne 0x1400b188f
lea rax, [r8 + r9]
xor r11d, r11d
mov r9, rax
sub r9, r8
add r9, 3
shr r9, 2
cmp r8, rax
cmova r9, r11
test r9, r9
je 0x1400b18ac
sub r10, r8
add r10, rcx
mov ecx, dword [r8]
inc r11
mov edx, ecx
mov eax, ecx
shl ecx, 8
shr edx, 8
shl eax, 8
xor edx, eax
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [r10 + r8], edx
lea r8, [r8 + 4]
cmp r11, r9
jb 0x1400b1861
ret
add r9, r10
jmp 0x1400b18a7
mov al, byte [r8]
xor r10, 3
inc r8
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x1400b1894
ret

Function at 0x1400b18b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
movsxd r10, edx
mov al, cl
mov r11, r8
or al, r10b
or al, r8b
or al, r9b
test al, 7
jne 0x1400b195c
lea rax, [r8 + r9]
xor ebx, ebx
mov r9, rax
sub r9, r8
add r9, 7
shr r9, 3
cmp r8, rax
cmova r9, rbx
test r9, r9
je 0x1400b1979
sub r10, r8
add r10, rcx
mov rax, qword [r11]
inc rbx
mov rdx, rax
shr rdx, 0x20
mov r8d, edx
mov ecx, edx
shl edx, 8
shr r8d, 8
shl ecx, 8
xor r8d, ecx
mov ecx, eax
and r8d, 0xff00ff
shl ecx, 8
xor r8d, edx
mov edx, eax
shl eax, 8
shr edx, 8
rol r8d, 0x10
xor edx, ecx
mov dword [rsp + 8], r8d
and edx, 0xff00ff
xor edx, eax
rol edx, 0x10
mov dword [rsp + 0xc], edx
mov rax, qword [rsp + 8]
mov qword [r10 + r11], rax
lea r11, [r11 + 8]
cmp rbx, r9
jb 0x1400b18f8
jmp 0x1400b1979
add r9, r10
jmp 0x1400b1974
mov al, byte [r11]
xor r10, 7
inc r11
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x1400b1961
mov rbx, qword [rsp + 0x10]
ret

Function at 0x1400b26dc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r9d, edx
mov r10, rcx
test rcx, rcx
jne 0x1400b26f6
mov eax, r8d
jmp 0x1400b2764
not r8d
lea rdi, [0x14023f9c0]
cmp r9d, 8
jb 0x1400b273a
mov r11, r9
shr r11, 3
mov ebx, 8
movzx ecx, byte [r10]
mov eax, r8d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4]
xor r8d, eax
dec rbx
jne 0x1400b2712
add r9d, 0xfffffff8
dec r11
jne 0x1400b270d
test r9d, r9d
je 0x1400b275e
movzx ecx, byte [r10]
mov eax, r8d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4]
xor r8d, eax
dec r9d
jne 0x1400b273f
not r8d
movsxd rax, r8d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1400b3254
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14053b640], eax
add rsp, 0x28
ret
Function at 0x1400b32b8
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x1400b332d
call qword [rcx + reloc.ODBC32.dll_SQLSetStmtAttrW]
mov edx, dword [rbx + 0xf4]
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov rdi, rax
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x1400b332d
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x1400b3305
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1404ba214]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x14053b640]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x14053b660], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b333c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov ecx, dword [0x14053b640]
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov r8d, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
add r8d, ebx
add edx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xa8]

Function at 0x1400b3398
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov ecx, dword [0x14053b640]
mov esi, r8d
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9d, esi
mov r8d, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
mov rcx, rax
add r8d, ebx
add edx, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xa0]

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x14053b640]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400b347d
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x1400b3455
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x1404ba214]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x14053b640]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x14053b660], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400ba3f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, IsNetDrive
mov ecx, esi
call fcn.1400bdc70
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1401f4ebc
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x1400ba420
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400bddb0

Function at 0x1400ba450
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x1400ba481
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400ba460
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp fcn.1400ba490
mov ecx, r8d
jmp fcn.1400be0d0

Function at 0x1400baea0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x1400bb004
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x140227078]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x1400bafd0
cmp word [r14 + 2], di
je 0x1400bafd0
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x1400baf10
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x1400baf3d
cmp word [rbx], bp
je 0x1400baf3d
add rbx, 2
jmp 0x1400baf20
inc edi
cmp edi, r12d
je 0x1400baf52
cmp word [rbx], bp
je 0x1400baf5b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x1400baf20
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.1400be320
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400baf8a
mov ecx, r13d
call fcn.1400be440
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.1400bdc70
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400bafae
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x1400bafdd
test ax, ax
jne 0x1400baff0
inc edi
cmp edi, edx
je 0x1400baff6
test ax, ax
je 0x1400baf5e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x1400bafd0
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x1400baf5e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.1400be0d0
Function at 0x1400bb490
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r15
sub rsp, 0x28
mov ebp, r9d
mov edi, edx
mov rsi, rcx
test r8, r8
je 0x1400bb57a
movzx r15d, word [r8]
test r15w, r15w
je 0x1400bb57a
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x20], r14
cmovs edi, r13d
test rcx, rcx
je 0x1400bb4fd
cmp word [rcx], r13w
je 0x1400bb4fd
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], r13w
jne 0x1400bb4e5
cmp ebx, edi
cmovg ebx, edi
sub edi, ebx
jns 0x1400bb500
mov edi, r13d
jmp 0x1400bb500
mov ebx, r13d
call fcn.1400be320
lea ecx, [rbx + rdi]
mov edx, ebp
mov r12d, eax
call fcn.1400bdc70
mov r14, rax
test r12d, r12d
je 0x1400bb525
mov ecx, r12d
call fcn.1400be390
mov rsi, rax
mov r12, qword [rsp + 0x58]
test ebx, ebx
je 0x1400bb543
movsxd rcx, edi
movsxd r8, ebx
mov rdx, rsi
lea rcx, [r14 + rcx*2]
add r8, r8
call sub.msvcrt.dll_memmove
test edi, edi
je 0x1400bb559
mov edx, edi
mov rdi, r14
movzx eax, r15w
mov ecx, edx
lea r14, [r14 + rdx*2]
rep stosw word [rdi], ax
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
mov word [r14 + rax*2], r13w
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
ret
mov ecx, r9d
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
jmp fcn.1400be0d0

Function at 0x1400bb5e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp edx, 0xd
jne 0x1400bb62d
mov ebx, IsNetDrive
mov edx, r8d
mov ecx, ebx
call fcn.1400bdc70
mov rdx, rdi
mov rcx, rax
call fcn.1401f4eec
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400bb610
sub ebx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400bddb0
cmp edx, 1
je 0x1400bb64b
cmp edx, 0x18
je 0x1400bb64b
cmp edx, 3
je 0x1400bb646
cmp edx, 0x19
je 0x1400bb646
cmp edx, 0xb
jne 0x1400bb64e
movzx edi, cx
jmp 0x1400bb64e
movzx edi, cl
mov ebx, 0x20
mov edx, r8d
mov ecx, ebx
call fcn.1400bdc70
lea rdx, [0x14023feac]
mov r8d, edi
mov rcx, rax
call fcn.1401f5760
sub ebx, eax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400bddb0

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140539a20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400bc719
mov r8, qword [0x140539a18]
mov rcx, qword [0x1404ba214]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140539a20]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140539a10]
jmp 0x1400bc705
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400bc702
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400bc6f0
lea rcx, [0x1400bc5fc]
mov rdx, rdi
call fcn.1401f505c
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bc730
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rbp, r8
mov rdi, rdx
and ecx, 7
je 0x1400bc75a
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x140539a18]
test rcx, rcx
jne 0x1400bc79d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1404ba214]
movsxd r8, ebx
mov edx, 8
mov dword [0x140539a20], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140539a20]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140539a18]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x140539a18], rcx
mov ecx, dword [0x140539a20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x140539a18]
mov rcx, qword [0x1404ba214]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140539a20]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rdi, rdi
jne 0x1400bc7f1
test rbp, rbp
je 0x1400bc818
lea rcx, [0x140539a10]
mov edx, SQLGetData
call fcn.1400bd3cc
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x1400bc818
lea rcx, [rbx + rsi]
call rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400bd4a0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x14053b960], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1404b1ff4], eax
call fcn.1400be780
add rsp, 0x28
ret

Function at 0x1400bd600
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret