joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074990
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.1400e3c50
cmp byte [rdi + 0x17], 0
jns 0x1400749d1
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x1400749f2
mov rcx, qword [rsp + 0x58]
call fcn.14010f324
test rsi, rsi
je 0x140074a99
test edi, edi
je 0x140074a99
mov ecx, edi
add rcx, rcx
call fcn.14010f35c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.1400e3c50
cmp byte [r14 + 0x17], 0
jns 0x140074a35
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x140074a55
mov rcx, qword [rsp + 0x58]
call fcn.14010f324
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x140074ab7
mov rcx, rbx
call fcn.140133dc4
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.1400e4110
cmp byte [rsi + 0x17], 0
js 0x140074aba
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.14010f364
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140110830
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [rsi]
call fcn.14010f324
jmp 0x140074a80

Function at 0x140074f30
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14022eae8]
test rdi, rdi
jne 0x140074fe3
mov ecx, 0x50
call fcn.14010f2e8
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14010f2e8
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140075005
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x14022eae8], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140075031
mov rcx, rax
call fcn.140133dc4
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140075040
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140110830
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.14014d850
int3
Function at 0x140075040
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.140066c90
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400751cc
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1401f7a68]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14007521d
lea rdx, [0x1401f7ab8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140075230
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [case.0x140173770.0]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x140075238
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x140075242
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14010f2e8
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r15
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r15, rbx
test r15, r15
je 0x1400751f1
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.14014b030
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x14007514c
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140074c50
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14007519a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x1400751cc
cmp r15, rbx
je 0x1400751c4
lea rsi, [r15 - 0x18]
cmp byte [r15 - 1], 0
js 0x1400751b9
mov r15, rsi
cmp rsi, rbx
jne 0x1400751a4
jmp 0x1400751c4
mov rcx, qword [r15 - 0x18]
call fcn.14010f324
jmp 0x1400751af
mov rcx, rbx
call fcn.14010f324
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140110830
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.14014d850
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400750f1
xor r14d, r14d
jmp 0x1400750f4
xor r15d, r15d
xor ebx, ebx
jmp 0x140075173
lea rcx, [rsp + 0x30]
call fcn.14014ada0
int3
Function at 0x140077e20
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140078067
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140219f80], rax
jne 0x14007806a
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x1401f74e0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x1401f7530]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x1401f6cc0]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14007805a
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x140077fe8
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140078053
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x14007806d
mov edx, ecx
and edx, 0x1fc000
je 0x14007806d
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.1400f0be0
mov ecx, dword [0x14022eb1c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140226bdc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x168], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140110830
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.1400fd950
test rax, rax
je 0x14007809e
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x140077f63
xor ecx, ecx
jmp 0x140077f49
mov rcx, rbx
call fcn.1400f1850
jmp 0x140077ef9
int3
int3
movaps xmm0, xmmword [0x1401ec750]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.140177840
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.1401778b0
xor edi, edi
jmp 0x140077f8d
Function at 0x14007a200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x14007a21a
test r8d, r8d
jne 0x14007a213
call fcn.1400903d0
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.1400799b0
Function at 0x140080e40
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14022ed60]
mov ecx, dword [0x140226bdc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140080ea0
lea rsi, [0x14022ed58]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140110830
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14022ed60]
call fcn.14010f440
cmp dword [0x14022ed60], 0xffffffff
jne 0x140080e7c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140112970
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14010f2e8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14022eda8]
mov ecx, dword [0x140226bdc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140080f60
lea r8, [0x14022ed78]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140081060
mov qword [0x14022ed58], rsi
lea rcx, [0x14022ed60]
call fcn.14010f4d8
jmp 0x140080e7c
lea rcx, [0x14022eda8]
call fcn.14010f440
cmp dword [0x14022eda8], 0xffffffff
jne 0x140080f31
xorps xmm0, xmm0
movups xmmword [0x14022ed98], xmm0
movups xmmword [0x14022ed88], xmm0
movups xmmword [0x14022ed78], xmm0
lea rcx, [0x14022ed78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14022eda8]
call fcn.14010f4d8
jmp 0x140080f31

Function at 0x140080fb0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14022eda8]
mov ecx, dword [0x140226bdc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140080feb
movzx eax, word [0x14022ed78]
cmp eax, 9
jne 0x140081033
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14022eda8]
call fcn.14010f440
cmp dword [0x14022eda8], 0xffffffff
jne 0x140080fd5
xorps xmm0, xmm0
movups xmmword [0x14022ed98], xmm0
movups xmmword [0x14022ed88], xmm0
movups xmmword [0x14022ed78], xmm0
lea rcx, [0x14022ed78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14022eda8]
call fcn.14010f4d8
jmp 0x140080fd5
test eax, eax
je 0x140080fe6
cmp eax, 6
jne 0x140081043
mov eax, 2
jmp 0x140080fe6
cmp eax, 0xc
jne 0x14008104f
mov eax, 3
jmp 0x140080fe6
mov eax, 4
jmp 0x140080fe6
Function at 0x1400817a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400818ed
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401ec750]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [case.0x140173770.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [case.0x140173770.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [case.0x140173770.0]
test r14, r14
je 0x140081883
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140081873
lea r14, [rsi + 0xf8]
mov eax, dword [0x14022edb4]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400818f1
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x1400818be
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140110830
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400818d0
bt eax, 9
jae 0x140081911
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x1400818be
lea rcx, [0x140004520]
jmp 0x1400818bb
call fcn.14017f5b0
lea rax, [0x14017fdb0]
test r14, r14
je 0x1400818be
lea rcx, [0x14017f470]
jmp 0x1400818bb
Function at 0x140081a90
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x40], rax
movaps xmm0, xmmword [0x1401ec750]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.1400ec7a0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400e2f30
mov rcx, rsi
call fcn.1400dfcb0
test al, al
je 0x140081c0d
mov rcx, rsi
call fcn.140067330
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x140081b8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140081c36
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140081b7f
mov qword [rsi + 0x40], rdi
call fcn.1400ec7c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140081c51
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
movabs rbx, 0xfffffffc00000000
mov rax, rcx
and rax, rbx
cmp rax, qword [0x140225fc8]
je 0x140081c55
and rbx, rdi
cmp rbx, qword [0x140225fc8]
je 0x140081c5f
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x140081c51
lea rax, fcn.14014e9d0
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rdi
call fcn.140080820
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1400e3170
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140110830
mov eax, edi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400ec7c0
mov rcx, qword [rsi + 0x40]
call fcn.1400df420
mov qword [rsi + 0x40], 0
jmp 0x140081b6a
xor edi, edi
jmp 0x140081c0d
call fcn.1400c3090
jmp 0x140081bd6
mov rcx, rdi
call fcn.1400c2bb0
jmp 0x140081be2
Function at 0x14008dc90
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140233c38], 0
jne 0x14008dccd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14008dcc0
mov dword [rdi], eax
mov dword [0x140233c40], eax
mov qword [0x140233c38], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140095d60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140095d30]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140234990]
lea rdx, [0x140095bb0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140095e58
cmp dword [0x140234998], 0
jne 0x140095e65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14023499c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140095e0c
mov ecx, 1
mov edx, 0x28
call fcn.1400e0380
test rax, rax
je 0x140095e65
mov r14, rax
mov ecx, dword [0x14023499c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140095e5d
lea r15, [0x1402349a0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1402349b0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140110830
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140124e30
mov rcx, r14
call fcn.1400e02e0
mov rcx, rsi
mov rax, rdi
call qword [case.0x140173770.0]
xor esi, esi
jmp 0x140095e3c

Function at 0x140096240
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14009627c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140096286
add rdi, rbx
sub rsi, rbx
jne 0x14009625a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140124e30
int3
Function at 0x140096860
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140096870
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140096891
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400968b1
cmp byte [r14 + 0x68], 0
jne 0x140096975
or edi, 0x20000000
test dil, 8
jne 0x14009692b
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400968cb
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400968dc
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140096940
cmp byte [r14], 0
jne 0x14009694e
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14009695f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14009696b
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r14 + 0x88], 0
je 0x140096992
or edi, 0x40000000
jmp 0x1400968b7
lea rcx, [r14 + 0x30]
call fcn.140067330
mov r15, rax
jmp 0x1400968e3
add r14, 8
mov rcx, r14
call fcn.140067330
mov r9, rax
jmp 0x1400968ec
cmp ebx, 4
jne 0x140096980
mov edx, 6
jmp 0x1400968f5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140096916
or edi, 0x80000000
jmp 0x1400968b1
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14009699d
mov edx, 7
jmp 0x1400968f5
or edi, 0x10000000
jmp 0x1400968b7
cmp ebx, 1
jne 0x1400969ac
mov edx, 4
jmp 0x1400968f5
xor edx, edx
jmp 0x1400968f5
Function at 0x140096870
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140096870
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140096891
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400968b1
cmp byte [r14 + 0x68], 0
jne 0x140096975
or edi, 0x20000000
test dil, 8
jne 0x14009692b
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400968cb
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400968dc
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140096940
cmp byte [r14], 0
jne 0x14009694e
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14009695f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14009696b
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r14 + 0x88], 0
je 0x140096992
or edi, 0x40000000
jmp 0x1400968b7
lea rcx, [r14 + 0x30]
call fcn.140067330
mov r15, rax
jmp 0x1400968e3
add r14, 8
mov rcx, r14
call fcn.140067330
mov r9, rax
jmp 0x1400968ec
cmp ebx, 4
jne 0x140096980
mov edx, 6
jmp 0x1400968f5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140096916
or edi, 0x80000000
jmp 0x1400968b1
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14009699d
mov edx, 7
jmp 0x1400968f5
or edi, 0x10000000
jmp 0x1400968b7
cmp ebx, 1
jne 0x1400969ac
mov edx, 4
jmp 0x1400968f5
xor edx, edx
jmp 0x1400968f5

Function at 0x1400969c0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400969f8
cmp byte [r15 + 0x68], 0
jne 0x140096ac7
or edi, 0x20000000
test dil, 8
jne 0x140096a86
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x140096a16
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x140096a27
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x140096a9b
cmp byte [r15], 0
jne 0x140096aa9
xor r9d, r9d
cmp ebx, 4
jne 0x140096a77
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x140096abd
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140096add
mov edx, 7
jmp 0x140096a41
cmp byte [r15 + 0x88], 0
je 0x140096ad2
or edi, 0x40000000
jmp 0x140096a02
lea rcx, [r15 + 0x30]
call fcn.140067330
mov r14, rax
jmp 0x140096a2e
add r15, 8
mov rcx, r15
call fcn.140067330
mov r9, rax
jmp 0x140096a37
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140096a62
or edi, 0x80000000
jmp 0x1400969f8
or edi, 0x10000000
jmp 0x140096a02
mov edx, 1
test ebx, ebx
je 0x140096a41
cmp ebx, 1
jne 0x140096af9
mov edx, 4
jmp 0x140096a41
xor edx, edx
jmp 0x140096a41