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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor eax, eax
cmp qword [rcx + 8], 0
mov rbx, rcx
jne 0x1400d11c0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400d11e2
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, eax
cmp eax, 0xffffffff
je 0x1400d11df
and edx, 0x10
mov eax, 1
jne 0x1400d11aa
mov rcx, qword [rbx]
lea rsi, [0x140235d7a]
lea r12, [rsp + 0x40]
mov byte [rsp + 0x40], 0
mov rdx, rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
call sym.strtok
mov rbx, rax
test rax, rax
je 0x1400d12c0
mov r13, qword [sym.imp.msvcrt.dll__mkdir]
lea rdi, [rsp + 0x30]
movabs rbp, 0x3fffffffffffffff
nop dword [rax + rax]
mov rcx, rbx
call sym.strlen
mov r8, rax
mov rax, rbp
sub rax, qword [rsp + 0x38]
cmp rax, r8
jb 0x1400d12c4
mov rdx, rbx
mov rcx, rdi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_append_char_const__unsigned_long_long_
cmp qword [rsp + 0x38], rbp
je 0x1400d12d0
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_append_char_const__unsigned_long_long_
mov rcx, qword [rsp + 0x30]
call r13
mov rdx, rsi
xor ecx, ecx
mov r14d, eax
call sym.strtok
mov rbx, rax
test rax, rax
jne 0x1400d1230
cmp r14d, 0xffffffff
setne al
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x1400d11aa
mov byte [rsp + 0x2f], al
call sym.operator_delete_void_
movzx eax, byte [rsp + 0x2f]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor eax, eax
jmp 0x1400d128f
lea rcx, str.basic_string::append
call sym.std::__throw_length_error_char_const_
lea rcx, str.basic_string::append
call sym.std::__throw_length_error_char_const_
mov rbx, rax
mov rcx, rdi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
mov rcx, rbx
call sym._Unwind_Resume
nop

Function at 0x1400d2810
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x140269700]
mov r8d, 0x32
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
mov eax, 0
cmovne rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400d2860
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rdi, [0x140269700]
mov rbx, rcx
mov rsi, r8
mov rcx, rdx
mov r8d, 0x32
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400d2898
cmp byte [0x140269700], 0
jne 0x1400d2920
lea rbp, [rbx + 0x10]
mov qword [rbx], rbp
test rsi, rsi
je 0x1400d294b
mov rcx, rsi
call sym.strlen
mov qword [rsp + 0x28], rax
mov rdi, rax
cmp rax, 0xf
ja 0x1400d28e0
cmp rax, 1
je 0x1400d2940
test rax, rax
jne 0x1400d28ff
mov qword [rbx + 8], rax
mov byte [rbp + rax], 0
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rbx
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_create_unsigned_long_long__unsigned_long_long_
mov qword [rbx], rax
mov rbp, rax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x10], rax
mov rcx, rbp
mov r8, rdi
mov rdx, rsi
call sym.memcpy
mov rax, qword [rsp + 0x28]
mov rbp, qword [rbx]
jmp 0x1400d28c9
mov rdx, rdi
mov rcx, rbx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx edx, byte [rsi]
mov byte [rbx + 0x10], dl
jmp 0x1400d28c9
lea rcx, str.basic_string:_construction_from_null_is_not_valid
call sym.std::__throw_logic_error_char_const_
nop
nop dword [rax + rax]

Function at 0x1400d2960
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x140269700]
mov r8d, 0x32
mov rdx, rsi
mov rbx, rcx
lea rcx, str.USERNAME
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400d2993
cmp byte [0x140269700], 0
jne 0x1400d29c0
lea rax, [rbx + 0x10]
mov dword [rbx + 0x10], 0x72657375
mov qword [rbx], rax
mov rax, rbx
mov qword [rbx + 8], 4
mov byte [rbx + 0x14], 0
add rsp, 0x28
pop rbx
pop rsi
ret
mov rdx, rsi
mov rcx, rbx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400d29e0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x140269700]
mov r8d, 0x32
mov rdx, rsi
mov rbx, rcx
lea rcx, str.COMPUTERNAME
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400d2a13
cmp byte [0x140269700], 0
jne 0x1400d2a48
lea rax, [rbx + 0x10]
mov dword [rbx + 0x18], 0x74736f68
movabs rdx, 0x2d6e776f6e6b6e75
mov qword [rbx], rax
mov rax, rbx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 8], 0xc
mov byte [rbx + 0x1c], 0
add rsp, 0x28
pop rbx
pop rsi
ret
mov rdx, rsi
mov rcx, rbx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400d3270
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rax, fcn.140113670
lea rsi, [0x140269700]
mov rdi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r8d, 0x32
mov rdx, rsi
mov qword [rcx], rax
lea rax, [rcx + 0x20]
mov rbx, rcx
lea rbp, [rcx + 0x78]
mov qword [rcx + 0x10], rax
lea rax, [rcx + 0x40]
mov qword [rcx + 0x30], rax
lea rax, [rcx + 0x60]
mov dword [rcx + 8], 0x3f2
mov qword [rcx + 0x18], 0
mov byte [rcx + 0x20], 0
mov qword [rcx + 0x38], 0
mov byte [rcx + 0x40], 0
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], 0
mov byte [rcx + 0x60], 0
mov dword [rcx + 0x70], 0
lea rcx, str.USERNAME
call rdi
test eax, eax
je 0x1400d3302
cmp byte [0x140269700], 0
jne 0x1400d3358
lea rdx, str.user
mov rcx, rbp
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
lea r12, [rbx + 0x98]
mov r8d, 0x32
mov rdx, rsi
lea rcx, str.COMPUTERNAME
call rdi
test eax, eax
je 0x1400d3337
cmp byte [0x140269700], 0
jne 0x1400d3368
lea rdx, str.unknown_host
mov rcx, r12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
nop
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, rsi
mov rcx, rbp
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
jmp 0x1400d3311
mov rdx, rsi
mov rcx, r12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
nop
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400d5030
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rax, fcn.140113670
lea rsi, [0x140269700]
mov qword [rcx], rax
lea rax, [rcx + 0x20]
lea rdi, [rcx + 0x10]
mov rbx, rcx
mov qword [rcx + 0x10], rax
mov rax, qword [r8 + 8]
lea r12, [rbx + 0x78]
mov dword [rcx + 8], edx
mov rdx, qword [r8]
mov rcx, rdi
add rax, rdx
mov r8, rax
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char__char__char__std::forward_iterator_tag___clone_.isra.0_
lea rax, [rbx + 0x40]
mov byte [rbx + 0x40], 0
mov rdx, rsi
mov qword [rbx + 0x30], rax
lea rax, [rbx + 0x60]
mov rbp, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r8d, 0x32
mov qword [rbx + 0x38], 0
lea rcx, str.USERNAME
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], 0
mov byte [rbx + 0x60], 0
call rbp
test eax, eax
je 0x1400d50c6
cmp byte [0x140269700], 0
jne 0x1400d5128
lea rdx, str.user
mov rcx, r12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
lea r13, [rbx + 0x98]
mov r8d, 0x32
mov rdx, rsi
lea rcx, str.COMPUTERNAME
call rbp
test eax, eax
je 0x1400d50fb
cmp byte [0x140269700], 0
jne 0x1400d5138
lea rdx, str.unknown_host
mov rcx, r13
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rdx, rdi
mov rcx, rbx
call method.el::base::LogFormat.parseFromFormat_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
nop
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, rsi
mov rcx, r12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
jmp 0x1400d50d5
mov rdx, rsi
mov rcx, r13
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
jmp 0x1400d510a
Function at 0x1400d5e60
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rbx, [0x140269700]
mov r8d, 0x32
lea rcx, str.TERM
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rsi, [rsp + 0x20]
test eax, eax
je 0x1400d5e9a
cmp byte [0x140269700], 0
jne 0x1400d5f30
lea rdx, [0x140235d7c]
mov rcx, rsi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
cmp rax, 5
je 0x1400d5ef0
cmp rax, 0xb
jne 0x1400d5f40
movabs rax, 0x6f632d6d72657478
cmp qword [rbx], rax
jne 0x1400d5efc
cmp dword [rbx + 7], 0x726f6c6f
jne 0x1400d5efc
lea rax, [rsp + 0x30]
mov edi, 1
cmp rbx, rax
jne 0x1400d5f1b
jmp 0x1400d5f23
cmp dword [rbx], 0x72657478
je 0x1400d5fd0
lea rdx, str.screen
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
test al, al
je 0x1400d5f70
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x1400d5f23
mov rcx, rbx
call sym.operator_delete_void_
mov eax, edi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov rcx, rsi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
jmp 0x1400d5ea9
cmp rax, 0xe
jne 0x1400d5efc
movabs rax, 0x35322d6d72657478
cmp qword [rbx], rax
jne 0x1400d5efc
movabs rax, 0x726f6c6f63363532
cmp qword [rbx + 6], rax
jne 0x1400d5efc
jmp 0x1400d5edb
lea rdx, str.linux
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
test al, al
jne 0x1400d5f11
lea rdx, str.cygwin
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
test al, al
jne 0x1400d5f11
lea rdx, str.screen_256color
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
test al, al
jne 0x1400d5f11
lea rdx, str.screen.xterm_256color
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
jmp 0x1400d5f11
cmp byte [rbx + 4], 0x6d
jne 0x1400d5efc
jmp 0x1400d5edb
Function at 0x1400e7220
Capabilities:
Encode data using xor
Hash data using sha512

Disassembly:
push rdi
mov r8, rcx
test rdx, rdx
je 0x1400e72f8
test rcx, rcx
je 0x1400e72f8
lea rdi, [rcx + 0x48]
mov eax, ecx
mov qword [rcx + 0x40], 0
movabs r9, 0x6a09e667f3bcc908
mov qword [rcx + 0xe8], 0
and rdi, 0xfffffffffffffff8
movabs r10, 0xbb67ae8584caa73b
sub eax, edi
lea ecx, [rax + 0xf0]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov qword [r8], r9
movabs r9, 0x3c6ef372fe94f82b
mov qword [r8 + 8], r10
movabs r10, 0xa54ff53a5f1d36f1
mov qword [r8 + 0x10], r9
movabs r9, 0x510e527fade682d1
mov qword [r8 + 0x18], r10
movabs r10, 0x9b05688c2b3e6c1f
mov qword [r8 + 0x20], r9
movabs r9, 0x1f83d9abfb41bd6b
mov qword [r8 + 0x28], r10
movabs r10, 0x5be0cd19137e2179
mov qword [r8 + 0x30], r9
mov qword [r8 + 0x38], r10
nop word [rax + rax]
mov rcx, qword [rdx + rax]
xor qword [r8 + rax], rcx
add rax, 8
cmp rax, 0x40
jne 0x1400e72d8
movzx eax, byte [rdx]
mov dword [r8 + 0xe4], eax
xor eax, eax
pop rdi
ret
mov eax, 0xffffffff
pop rdi
ret
Function at 0x1400ebb60
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rdi, rcx
lea rax, [r8 + 1]
lea rsi, [rsp + 0x20]
mov rbp, rdx
lea r14, [rdi + 0x28]
mov rdx, r8
lea r13, [rsp + 0x60]
movabs rcx, 0x5851f42d4c957f2d
imul rax, rcx
lea r12, [rdi + 0x8368]
movabs rcx, 0x810a978a59f5a1fc
xor rcx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
movabs rcx, 0xa77099df38c2d846
xor rcx, rax
mov qword [rsp + 0x30], rcx
movabs rcx, 0x8126b91cbf22495c
xor rcx, rax
mov qword [rsp + 0x38], rcx
movabs rcx, 0x494d2597179f8a62
xor rcx, rax
mov qword [rsp + 0x40], rcx
movabs rcx, 0x9237efb9ceaaec0c
xor rcx, rax
mov qword [rsp + 0x48], rcx
movabs rcx, 0x2f2a56746ce62d78
xor rcx, rax
mov qword [rsp + 0x50], rcx
movabs rcx, 0x84853bf7b62ce54e
xor rax, rcx
mov qword [rsp + 0x58], rax
nop dword [rax]
mov rbx, qword [rdi]
and edx, 0x3fffff
mov r8, r12
mov rcx, rsi
shl rdx, 6
add rbx, rdx
mov rdx, r14
prefetchnta byte [rbx]
call method.randomx.executeSuperscalar_unsigned_long_long_____8___randomx::SuperscalarProgram__std::vector_unsigned_long_long__std::allocator_unsigned_long_long____
mov rdx, rbx
mov rax, rsi
nop
mov rcx, qword [rdx]
xor qword [rax], rcx
add rax, 8
add rdx, 8
cmp rax, r13
jne 0x1400ebc50
movsxd rax, dword [r14 + 0x1004]
add r14, 0x1068
mov rdx, qword [rsp + rax*8 + 0x20]
cmp r14, r12
jne 0x1400ebc28
movdqu xmm0, xmmword [rsp + 0x20]
movdqu xmm1, xmmword [rsp + 0x30]
movdqu xmm2, xmmword [rsp + 0x40]
movdqu xmm3, xmmword [rsp + 0x50]
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm2
movups xmmword [rbp + 0x30], xmm3
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400ec3c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov r8d, 0x40
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400ec3e0
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
add rsp, 0x38
ret
Function at 0x1400eeb60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, rcx
movzx ecx, word [rcx + 0x42]
mov rdi, rdx
mov qword [rsp + 0xa0], r8
mov r11, qword [r13 + 0x30]
mov r15, qword [r13 + rcx*8 + 0x48]
mov rbp, qword [r11 + 0x10]
lea r11, [sym.mdb_cmp_cint]
movzx edx, word [r15 + 0xa]
movzx r14d, word [r15 + 0xc]
mov eax, edx
sub r14d, 0x10
shr ax, 1
mov esi, r14d
xor eax, 1
shr esi, 1
and eax, 1
mov dword [rsp + 0x2c], esi
lea r14d, [rsi - 1]
mov r12d, eax
cmp rbp, r11
je 0x1400eed50
and dx, 0x20
jne 0x1400eecd0
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
cmp eax, r14d
jle 0x1400eec59
xor eax, eax
xor esi, esi
xor ebx, ebx
nop word [rax + rax]
cmp qword [rsp + 0xa0], 0
je 0x1400eec1b
mov r9d, dword [rsp + 0x2c]
test eax, eax
mov rdi, qword [rsp + 0xa0]
sete r8b
xor eax, eax
test r9d, r9d
setne al
and eax, r8d
mov dword [rdi], eax
mov word [r13 + rcx*2 + 0x148], dx
mov eax, dword [rsp + 0x2c]
cmp ebx, eax
mov eax, 0
cmovae rsi, rax
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r12d, [rbx + 1]
cmp r14d, r12d
jl 0x1400eec99
lea ebx, [r12 + r14]
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
sar ebx, 1
mov eax, ebx
movzx esi, word [r15 + rax*2 + 0x10]
add rsi, r15
movzx eax, word [rsi + 6]
mov qword [rsp + 0x30], rax
lea rax, [rsi + 8]
mov qword [rsp + 0x38], rax
call rbp
test eax, eax
je 0x1400eed40
jg 0x1400eec50
lea r14d, [rbx - 1]
cmp r14d, r12d
jge 0x1400eec59
movzx ecx, word [r13 + 0x42]
test eax, eax
jle 0x1400eed47
add ebx, 1
mov edx, ebx
test byte [r15 + 0xa], 0x20
jne 0x1400eebf0
mov r8d, ebx
movzx esi, word [r15 + r8*2 + 0x10]
add rsi, r15
jmp 0x1400eebf0
mov rdx, qword [r13 + 0x28]
movzx esi, word [r15 + 0x10]
mov edx, dword [rdx]
add rsi, r15
mov qword [rsp + 0x30], rdx
cmp eax, r14d
jg 0x1400eed7c
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x1400eed0e
lea r12d, [rbx + 1]
cmp r14d, r12d
jl 0x1400eec99
mov rdx, qword [rsp + 0x30]
lea ebx, [r12 + r14]
mov rcx, rdi
sar ebx, 1
mov eax, ebx
imul rax, rdx
mov rdx, qword [rsp + 0x20]
lea rax, [r15 + rax + 0x10]
mov qword [rsp + 0x38], rax
call rbp
test eax, eax
je 0x1400eed40
jg 0x1400eed00
lea r14d, [rbx - 1]
jmp 0x1400eed04
movzx ecx, word [r13 + 0x42]
xor eax, eax
mov edx, ebx
jmp 0x1400eebf0
test dl, 1
je 0x1400eebc8
movzx r11d, word [r15 + 0x12]
lea rbp, [sym.mdb_cmp_int]
cmp word [r15 + r11 + 6], 8
lea r11, [sym.mdb_cmp_long]
cmove rbp, r11
jmp 0x1400eebc8
xor edx, edx
xor eax, eax
xor ebx, ebx
jmp 0x1400eebf0

Function at 0x1400ef430
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 3
je 0x1400ef448
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, dword [0x140269fa0]
test eax, eax
jle 0x1400ef43c
mov rsi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
lea rdi, [0x140269fc0]
nop word [rax + rax]
mov ecx, dword [rdi + rbx*4]
call rsi
test rax, rax
je 0x1400ef479
mov dword [rax + 8], 0
add rbx, 1
cmp dword [0x140269fa0], ebx
jg 0x1400ef468
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400efd10
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r14, qword [rcx + 0x20]
mov r13d, dword [r14 + 0x1c]
mov r10d, edx
mov rdx, qword [rcx + 0x48]
mov r8, rcx
mov r12d, r10d
lea esi, [r10 + 1]
mov r9, qword [rdx]
mov r15d, r9d
test byte [r14 + 0x1a], 8
jne 0x1400efee8
cmp r9d, esi
jl 0x1400eff78
movsxd rax, r10d
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x30], r9
mov r12, rdx
mov rdi, rax
mov dword [rsp + 0x3c], r10d
shl rdi, 4
mov qword [rsp + 0x48], rax
add rdi, rdx
mov dword [rsp + 0xc8], r10d
mov qword [rsp + 0x40], rdi
mov rbx, rdi
mov rdi, rbp
mov rbp, rcx
jmp 0x1400efdeb
mov rcx, qword [rbx + 0x10]
mov r8d, eax
mov r9d, r13d
and r8d, 0xffffffef
mov word [rdx + 0xa], r8w
imul rcx, r9
mov r8d, r13d
test al, 4
je 0x1400efdb6
mov r8d, dword [rdx + 0xc]
imul r8d, r9d
pxor xmm0, xmm0
xor r9d, r9d
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
mov qword [rsp + 0x60], rcx
mov rcx, qword [r14]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400eff68
add esi, 1
add rbx, 0x10
cmp r15d, esi
jl 0x1400efe14
mov rdx, qword [rbx + 0x18]
movzx eax, word [rdx + 0xa]
cmp ax, 0x3fff
jbe 0x1400efd90
and ax, 0x7fff
add esi, 1
add rbx, 0x10
mov word [rdx + 0xa], ax
mov qword [rbx], 0
cmp r15d, esi
jge 0x1400efdeb
mov r9, qword [rsp + 0x30]
mov r10d, dword [rsp + 0xc8]
mov rdx, r12
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov r13, rdx
mov ebx, r9d
sub r9d, r10d
mov r12d, dword [rsp + 0x3c]
lea ecx, [r9 - 1]
add rax, rcx
shl rax, 4
lea rsi, [rdx + rax + 0x10]
jmp 0x1400efe76
lea eax, [r12 + 1]
movdqu xmm1, xmmword [rdi + 0x10]
mov rcx, qword [rcx]
mov r12, rax
shl rax, 4
add rax, r13
movups xmmword [rax], xmm1
mov qword [rax], rcx
add rdi, 0x10
cmp rdi, rsi
je 0x1400efea0
cmp qword [rdi + 0x10], 0
mov rcx, qword [rdi + 0x18]
je 0x1400efe50
test byte [rcx + 0xa], 4
je 0x1400efed0
cmp dword [rcx + 0xc], 1
je 0x1400efed0
call sym.free
add rdi, 0x10
cmp rdi, rsi
jne 0x1400efe76
nop dword [rax + rax]
mov rdx, r13
mov r8, rbp
mov eax, r12d
sub ebx, r12d
add dword [r8 + 0x80], ebx
mov qword [rdx], rax
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [r14 + 0xc8]
mov qword [rcx], rax
mov qword [r14 + 0xc8], rcx
jmp 0x1400efe6d
cmp r9d, esi
jl 0x1400eff78
mov eax, r9d
movsxd r10, r10d
mov ebx, r9d
sub eax, r12d
mov rcx, r10
sub eax, 1
shl rcx, 4
add rax, r10
add rcx, rdx
shl rax, 4
lea r10, [rdx + rax + 0x10]
jmp 0x1400eff35
and eax, 0xffffffef
mov word [r9 + 0xa], ax
add rcx, 0x10
cmp r10, rcx
je 0x1400efea6
mov r9, qword [rcx + 0x18]
movzx eax, word [r9 + 0xa]
cmp ax, 0x3fff
jbe 0x1400eff20
and ax, 0x7fff
movdqu xmm2, xmmword [rcx + 0x10]
mov word [r9 + 0xa], ax
lea eax, [r12 + 1]
mov r12, rax
shl rax, 4
movups xmmword [rdx + rax], xmm2
jmp 0x1400eff28
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400efeb8
mov ebx, r12d
jmp 0x1400efea6
Function at 0x1400f09b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
test rcx, rcx
je 0x1400f09c1
mov eax, dword [rcx + 0x7c]
not eax
test eax, 0x20001
je 0x1400f09d0
mov eax, 0x16
ret
jmp sym.mdb_txn_renew0