joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a76e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x24]
mov dword [r8], 1
movsxd rcx, ecx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401542e0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400a7c80
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140157270
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400a7fe0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402184a0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.1400a81f0
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400a7d16
and eax, 0x7f
jmp 0x1400a7d1b
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400a7def
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.140157270
mov rcx, r15
mov rdx, r14
call fcn.1400a81a0
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400a7e33
mov rcx, r14
call fcn.1400a7ef0
test al, al
jne 0x1400a7e80
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400a7d82
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a7e2c
call r13
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.140038260
mov rcx, r15
mov rdx, r14
call fcn.1400a81f0
mov rcx, rdi
mov rdx, r14
call fcn.14011f1a0
mov rcx, r14
call fcn.14011f120
movzx eax, byte [rsp + 0x47]
test al, al
js 0x1400a7dde
and eax, 0x7f
jmp 0x1400a7de3
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x1400a7d3b
lea rcx, [rsp + 0x30]
call fcn.14011f120
lea rcx, [rsp + 0x298]
call fcn.1400a8130
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1401542e0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x1400a7da3
test bl, bl
je 0x1400a7e58
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
js 0x1400a7e48
lea rcx, [rsp + 0x30]
jmp 0x1400a7e4d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400a7d63
lea rcx, [rsp + 0x48]
call fcn.1400a7ef0
test al, al
jne 0x1400a7e6c
mov edx, dword [rsp + 0x48]
jmp 0x1400a7e37
lea rcx, [rsp + 0x48]
call fcn.1400a7ef0
test al, al
je 0x1400a7d73
jmp 0x1400a7e2c
xor ebp, ebp
test bl, bl
je 0x1400a7da3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rsi
mov r8b, 1
call fcn.1400a7c80
mov ebp, eax
test eax, eax
jne 0x1400a7da3
cmp byte [rsp + 0x47], 0
jns 0x1400a7eba
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x1400a7da3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400a7da3
Function at 0x1400a9920
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x1400a9ae9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1401754b8
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x40], rax
movaps xmm6, xmmword [0x1402184a0]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, VarR8FromUI1
call fcn.14011e5c0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401100b0
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.14016b1f4
mov ecx, eax
call fcn.14016b24c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400a9ade
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [case.0x1401bea20.0]
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.140175238
test rax, rax
je 0x1400a9a81
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x1400a9aed
add r15, r12
mov rcx, rbx
call fcn.1401747a4
test eax, eax
je 0x1400a9af1
mov r12, r15
mov rcx, rbx
call fcn.1401747d0
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [case.0x1401bea20.0]
lea rcx, [rsp + 0x80]
call fcn.1401102f0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1401542e0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14d, 0xffff
jmp 0x1400a9a1f
xor ebx, ebx
jmp 0x1400a9ab3
xor ebx, ebx
jmp 0x1400a9a91
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [case.0x1401bea20.0]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x1400a9a44
Function at 0x1400b3cb0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400b3d70
mov eax, dword [rsi]
mov dword [reloc.WS2_32.dll_accept], eax
test al, 1
jne 0x1400b3cd1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x140259c60]
test rcx, rcx
jne 0x1400b3ceb
mov rcx, qword [0x140259c38]
test rcx, rcx
je 0x1400b3d0f
jmp 0x1400b3d31
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140259c60], 0
mov rcx, qword [0x140259c38]
test rcx, rcx
jne 0x1400b3d31
and byte [reloc.WS2_32.dll_accept], 0xfe
mov ecx, SafeArrayCopy
call fcn.1401536a0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140259c38], rax
mov rdx, qword [rsi + 8]
call fcn.1400b4a80
cmp dword [rsi + 0x14], 0
jne 0x1400b3d56
mov rcx, qword [0x140259c38]
cmp byte [rcx + 0x17], 0
jns 0x1400b3d50
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1401c5c90
Function at 0x1400b7ca0
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 [0x140241038]
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.140111dd0
cmp byte [rdi + 0x17], 0
jns 0x1400b7ce1
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 0x1400b7d02
mov rcx, qword [rsp + 0x58]
call fcn.1401536dc
test rsi, rsi
je 0x1400b7da9
test edi, edi
je 0x1400b7da9
mov ecx, edi
add rcx, rcx
call fcn.14015371c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.140111dd0
cmp byte [r14 + 0x17], 0
jns 0x1400b7d45
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 0x1400b7d65
mov rcx, qword [rsp + 0x58]
call fcn.1401536dc
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1400b7dd1
mov rcx, rbx
call fcn.14017c094
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.140112280
cmp byte [rsi + 0x17], 0
js 0x1400b7dc7
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140153724
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401542e0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.1401536dc
jmp 0x1400b7d90
int3

Function at 0x1400b81f0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140259d20]
test rdi, rdi
jne 0x1400b82a3
mov ecx, 0x50
call fcn.1401536a0
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, SafeArrayCopy
call fcn.1401536a0
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x1400b82c8
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 [0x140259d20], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400b82c5
mov rcx, rax
call fcn.14017c094
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.1400b8300
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401542e0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
int3
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.140194730
int3
Function at 0x1400b8300
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 [0x140241038]
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.1400a31e0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400b846c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x140229374]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1400b84c1
lea rdx, [0x1402293c4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b84af
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [case.0x1401bea20.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 0x1400b84b7
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x1400b8500
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1401536a0
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 0x1400b84d4
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.140191da0
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x1400b840c
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400b8000
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400b845a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x1400b846c
cmp r15, rbx
jne 0x1400b84a2
mov rcx, rbx
call fcn.1401536dc
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401542e0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r15 - 0x18]
call fcn.1401536dc
mov r15, rsi
cmp rsi, rbx
je 0x1400b8464
lea rsi, [r15 - 0x18]
cmp byte [r15 - 1], 0
jns 0x1400b849a
jmp 0x1400b8491
xor r14d, r14d
jmp 0x1400b83b4
xor r15d, r15d
xor ebx, ebx
jmp 0x1400b8433
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400b83b1
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.140194730
lea rcx, [rsp + 0x30]
call fcn.140191fd0
int3
Function at 0x1400bae50
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 [0x140241038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400bb09a
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1402451b0], rax
jne 0x1400bb09d
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x140228e50]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x140228ea0]
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, reloc.WS2_32.dll_recv
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 0x1400bb01f
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400bb02c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400bb018
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x1400bb0a0
mov edx, ecx
and edx, 0x1fc000
je 0x1400bb0a0
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.140122b20
mov ecx, dword [0x140259d64]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140251494]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x180], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401542e0
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x1400baf79
mov rcx, rbx
call fcn.140123710
jmp 0x1400baf29
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.140134250
test rax, rax
je 0x1400bb093
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 0x1400baf93
xor edi, edi
jmp 0x1400bafbd
int3
int3
movaps xmm0, xmmword [0x1402184a0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1401c5b90
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.1401c5c00
int3
Function at 0x1400bb790
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov rax, qword [0x140259dd0]
cmp rax, 1
jbe 0x1400bb7d1
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1401542e0
nop
add rsp, 0x1c0
pop rsi
ret
lea rcx, [0x140259dd0]
call fcn.14011e5f0
test al, al
je 0x1400bb828
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
mov dl, 0xaa
call fcn.140157270
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400bb80d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x140259dd8]
lea rcx, [0x140259dd0]
xor r8d, r8d
mov r9, rcx
call fcn.1400b52d0
jmp 0x1400bb7b7
mov rax, qword [0x140259dd0]
jmp 0x1400bb7b7

Function at 0x1400bda00
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebx, r9d
mov rsi, rcx
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
jne 0x1400bdada
or ebx, 8
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400bdb95
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400bdad2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400bdb8a
call fcn.14011e5e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
cmp rbx, 0xffffffffffffffff
je 0x1400bda92
test rbx, rbx
je 0x1400bdab5
call fcn.14011e5e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400bdaad
mov qword [rsi + 8], rbx
call fcn.14011e5e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401542e0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400bda77
xor edi, edi
jmp 0x1400bdb1e
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400bdb95
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1400bdad6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x1400bdb91
call fcn.14011e5e0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x38]
mov qword [r14], rax
or ebx, 8
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 2
xor r15d, r15d
mov rcx, rdi
mov edx, ebx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov rbx, qword [r14]
cmovne r15, rbx
mov qword [rsp + 0x30], r15
test r15, r15
je 0x1400bdb9d
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400bda58
call fcn.14011e5e0
mov rcx, rdi
call fcn.140106db0
jmp 0x1400bda4e
xor ebx, ebx
jmp 0x1400bda6f
xor edi, edi
jmp 0x1400bdb16
mov byte [rsi], 0
jmp 0x1400bdab5
mov byte [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400bdab5
call fcn.14011e5e0
mov rcx, rdi
call fcn.140106db0
jmp 0x1400bdab5
Function at 0x1400c0be0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400c0d2d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1402184a0]
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.0x1401bea20.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.0x1401bea20.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.0x1401bea20.0]
test r14, r14
je 0x1400c0cc3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400c0cb3
lea r14, [rsi + 0xf8]
mov eax, dword [0x14025a134]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400c0d31
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x1400c0cfe
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.1401542e0
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400c0d10
bt eax, 9
jae 0x1400c0d51
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x1400c0cfe
lea rcx, [0x140004520]
jmp 0x1400c0cfb
call fcn.1401ce720
lea rax, [0x1401cef20]
test r14, r14
je 0x1400c0cfe
lea rcx, [0x1401ce5e0]
jmp 0x1400c0cfb
Function at 0x1400c0ff0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400c10e5
cmp qword [rsi], 0
jne 0x1400c10e5
cmp dword [rsi + 0x14], 0
jne 0x1400c10e5
cmp qword [rsi + 8], 0
jne 0x1400c10e5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400c1064
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400c10cc
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400c105c
mov qword [rsi], r14
call fcn.14011e5e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400c109e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400c10b4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400c1096
mov qword [rsi + 8], r14
call fcn.14011e5e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14011e5e0
mov rcx, qword [rsi + 8]
call fcn.140106db0
mov qword [rsi + 8], 0
jmp 0x1400c1083
call fcn.14011e5e0
mov rcx, qword [rsi]
call fcn.140106db0
mov qword [rsi], 0
jmp 0x1400c104a
mov rcx, rsi
call fcn.1401cfed0
mov rax, qword [rsi]
jmp 0x1400c102a

Function at 0x1400ce890
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14025efb8], 0
jne 0x1400ce8cd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400ce8c0
mov dword [rdi], eax
mov dword [0x14025efc0], eax
mov qword [0x14025efb8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400d3db0
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 [0x140241038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400d3d80]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14025fd00]
lea rdx, [0x1400d3c20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400d3ec0
cmp dword [0x14025fd08], 0
jne 0x1400d3eb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14025fd0c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400d3e5c
mov ecx, 1
mov edx, 0x28
call fcn.14010d2a0
test rax, rax
je 0x1400d3eb0
mov r14, rax
mov ecx, dword [0x14025fd0c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400d3ea8
lea r15, [0x14025fd10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14025fd20]
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.1401542e0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.14010d200
mov rcx, rsi
mov rax, rdi
call qword [case.0x1401bea20.0]
xor esi, esi
jmp 0x1400d3e8c
call fcn.14016dd20
int3

Function at 0x1400d4290
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400d42cc
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 0x1400d42d6
add rdi, rbx
sub rsi, rbx
jne 0x1400d42aa
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14016dd20
int3