joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a10
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x60
mov rax, qword gs:[0x60]
mov qword [rsp + 0x70], rdi
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x18]
mov rbx, rsi
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], 0
je 0x140001aaf
mov rcx, qword [rbx + 0x60]
xor edx, edx
cmp word [rcx], dx
je 0x140001a62
cmp rdx, 0x3f
jae 0x140001a62
movzx eax, byte [rcx]
add rcx, 2
inc rdx
mov byte [rsp + rdx + 0x1f], al
cmp word [rcx], 0
jne 0x140001a48
lea rcx, [rsp + 0x20]
mov byte [rsp + rdx + 0x20], 0
call qword [sym.imp.USER32.dll_CharLowerA]
or rcx, 0xffffffffffffffff
xor r8d, r8d
mov r11, rax
xor eax, eax
mov edx, 0x35
mov rdi, r11
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x140001aaf
movsx eax, byte [r11]
inc r8d
lea edx, [rdx + rdx*2]
add edx, eax
movsxd rax, r8d
inc r11
cmp rax, rcx
jb 0x140001a90
cmp edx, 0x35c206b
je 0x140001ab8
cmp rsi, rbx
jne 0x140001a33
mov rax, qword [rbx + 0x30]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rsi
ret

Function at 0x140001ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov ebp, edx
mov eax, dword [rax + rcx + 0x88]
mov rsi, rcx
mov r11d, dword [rax + rcx + 0x1c]
mov r9d, dword [rax + rcx + 0x20]
mov r13d, dword [rax + rcx + 0x24]
add r9, rcx
add r13, rcx
lea r12, [rcx + r11]
test r11d, r11d
je 0x140001b75
nop dword [rax + rax]
mov r10d, dword [r9]
or rcx, 0xffffffffffffffff
xor eax, eax
add r10, rsi
xor r8d, r8d
mov edx, 0x35
mov rdi, r10
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
je 0x140001b66
mov rcx, r10
nop word [rax + rax]
movsx eax, byte [rcx]
inc r8d
lea edx, [rdx + rdx*2]
add edx, eax
movsxd rax, r8d
inc rcx
cmp rax, rdi
jb 0x140001b50
cmp edx, ebp
je 0x140001b90
inc ebx
add r9, 4
cmp ebx, r11d
jb 0x140001b20
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
lea rcx, str.successfully_found___s____d_n
mov r8d, ebp
mov rdx, r10
call fcn.140006090
movzx eax, word [r13 + rbx*2]
mov eax, dword [r12 + rax*4]
add rax, rsi
jmp 0x140001b77
Function at 0x140003660
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x140003899
cmp byte [rcx + 0x89], 0
je 0x140003899
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000386d
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x140003738
dec eax
jne 0x140003837
jmp 0x14000373f
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x14000378d
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.14000656c
cmp rbx, rax
jne 0x14000385d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x14000388b
test rbx, rbx
jne 0x1400036f0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x14000387e
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140003871
cmp r9, rbx
jae 0x1400037e1
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140003b40
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x1400037fe
test rbx, rbx
jne 0x140003807
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x1400036db
test rbx, rbx
je 0x1400036f0
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x1400036db
sub eax, 2
je 0x140003850
cmp qword [rbp - 0x10], 0x10
jb 0x14000386d
mov rcx, qword [rbp - 0x28]
call fcn.140006350
xor al, al
jmp 0x14000389b
cmp qword [rbp - 0x10], 0x10
jb 0x140003899
mov rcx, qword [rbp - 0x28]
jmp 0x140003894
cmp qword [rbp - 0x10], 0x10
jb 0x14000386d
mov rcx, qword [rbp - 0x28]
call fcn.140006350
xor al, al
jmp 0x14000389b
lea rcx, str.string_too_long
call fcn.140004a88
int3
lea rcx, str.string_too_long
call fcn.140004a88
nop
cmp r9, 0x10
jb 0x140003899
mov rcx, r10
call fcn.140006350
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x140006b70
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400069e0
Function at 0x14001284c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14001fa70]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000cc6c
xor ebx, ebx
cmp qword [0x140021918], rbx
mov rdi, rax
jne 0x14001295f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140012a36
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140012a36
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140021918], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140021920], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140021928], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140021938], rax
test rax, rax
je 0x140012956
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140021930], rax
jmp 0x140012966
mov rax, qword [0x140021930]
jmp 0x14001296d
mov rax, qword [0x140021930]
mov r11, qword [0x140021938]
cmp rax, rdi
je 0x1400129d4
cmp r11, rdi
je 0x1400129d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140021938]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400129d4
test rax, rax
je 0x1400129d4
call rsi
test rax, rax
je 0x1400129ce
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400129ce
test byte [rsp + 0x40], 1
jne 0x1400129d4
bts ebp, 0x15
jmp 0x140012a14
mov rcx, qword [0x140021920]
cmp rcx, rdi
je 0x140012a14
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140012a14
call rax
mov rbx, rax
test rax, rax
je 0x140012a14
mov rcx, qword [0x140021928]
cmp rcx, rdi
je 0x140012a14
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140012a14
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140021918]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140012a36
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140012a38
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000ede0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140014c8b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001fa70]
jne 0x14000edfa
rol rcx, 0x10
test cx, 0xffff
jne 0x14000edf6
repz ret
ror rcx, 0x10
jmp 0x140014be4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140021a60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140021b58]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140014c69
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140021a60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140014c8b
mov rax, qword [rsp + 0x88]
mov qword [0x140021b58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140021af8], rax
mov rax, qword [0x140021b58]
mov qword [0x1400219d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140021ae0], rax
mov dword [0x1400219c0], 0xc0000409
mov dword [0x1400219c4], 1
mov rax, qword [0x14001fa70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001fa78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140021a58], eax
mov ecx, 1
call fcn.140012844
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001abc8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140021a58], 0
jne 0x140014d12
mov ecx, 1
call fcn.140012844
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140002ff0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000303a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000303a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000303a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000303a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000303a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000303c
xor al, al
add rsp, 0x28
ret
Function at 0x140028150
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rbx, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x58], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [0x1401bc9e0]
movaps xmmword [rcx], xmm0
mov byte [rcx + 0x17], 7
lea rax, str.GROUP:
cmp rcx, rax
ja 0x1400281b1
lea rcx, [rsp + 0x47]
cmp rcx, rax
ja 0x140028354
mov dword [rsp + 0x43], 0x203a5055
mov dword [rsp + 0x40], 0x554f5247
mov byte [rsp + 0x47], 0
test rdi, rdi
je 0x140028328
mov rcx, rdi
call fcn.1401464a0
lea r15, [rsp + 0x40]
mov rcx, r15
mov rdx, rdi
mov r8, rax
call fcn.14007c060
lea rdx, str.__NAME:
mov r8d, 8
mov rcx, r15
call fcn.14007c060
test r14, r14
je 0x140028328
mov rcx, r14
call fcn.1401464a0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, r14
mov r8, rax
call fcn.14007c060
lea rdx, str.__DURATION:
mov r8d, SafeArrayDestroy
mov rcx, rdi
call fcn.14007c060
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14002829d
sub rdx, qword [rbx]
lea rbx, [rsp + 0x28]
mov rcx, rbx
call fcn.14007d440
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x140028261
and r8d, 0x7f
jmp 0x14002826b
mov r8, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.14007c060
cmp byte [rsp + 0x3f], 0
jns 0x140028289
mov rcx, qword [rsp + 0x28]
call fcn.140123e5c
lea rdx, str.__us_
lea rcx, [rsp + 0x40]
mov r8d, 5
jmp 0x1400282af
lea rdx, str.unknown_unfinished
lea rcx, [rsp + 0x40]
mov r8d, shutdown
call fcn.14007c060
lea rdx, [0x1401c0845]
mov r8d, 2
mov rcx, rdi
call fcn.14007c060
movzx r8d, byte [rsp + 0x57]
test r8b, r8b
js 0x1400282da
and r8d, 0x7f
jmp 0x1400282e4
mov r8d, dword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], 0
mov rdx, rdi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [rsp + 0x57], 0
jns 0x14002830e
mov rcx, qword [rsp + 0x40]
call fcn.140123e5c
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401249d0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, str.string::append_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0xafa
call fcn.14016a900
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1____n
mov r8d, 0xf3
call fcn.14016a900
int3
Function at 0x14002ba50
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov rcx, rdx
test r8b, r8b
je fcn.140088c80
jmp fcn.140088f20

Function at 0x14002ba80
Capabilities:
Move file

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp fcn.14018c270

Function at 0x14002ffa0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x1400300c1
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140030101
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x1400300f7
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x1400300fb
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x140030109
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140030094
mov dl, byte [r8 + 0x19]
jmp 0x1400300f0
xor r10d, r10d
jmp 0x14002ffff
cmp byte [r8 + 0x1a], 0
je 0x1400300f4
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x1400300f4
cmp ecx, 0x666f736f
jne 0x1400300f4
cmp edx, 0x76482074
jne 0x1400300f4
mov byte [r8 + 0x19], 1
jmp 0x1400300f4
Function at 0x140031160
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 [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400313ac
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1401f4e90], rax
jne 0x1400313af
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, [0x1401c19a0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x1401c19f0]
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 rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140031332
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x14003133f
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x14003132b
lea rdx, [rsi + 0x48]
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x1400313b2
mov edx, ecx
and edx, 0x1fc000
je 0x1400313b2
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, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.1400ca5f0
mov ecx, dword [0x1401f9b38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401f78f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401249d0
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x14003128c
mov rcx, rdi
call fcn.1400ca1e0
jmp 0x140031239
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.1400c8330
test rax, rax
je 0x1400313a5
mov rbx, rax
and rax, 0xffffffffffe00000
mov ecx, ebx
shr ecx, 0xe
movzx ecx, cl
shl rcx, 5
or rcx, rax
mov rax, rcx
or rax, 0x1000
or rcx, 0x101e
movzx ecx, byte [rcx]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
jmp 0x1400312a6
xor ebx, ebx
jmp 0x1400312d0
int3
int3
movaps xmm0, xmmword [0x1401bc9e0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.140161090
mov rcx, rsi
call fcn.140024cf0
mov rcx, r14
call fcn.1401610f0
int3
Function at 0x140033780
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1401fb608], 0
jne 0x1400337bd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400337b0
mov dword [rdi], eax
mov dword [0x1401fb610], eax
mov qword [0x1401fb608], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x1400388f0
Capabilities:
Get session user name

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x268
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rdi, [rsp + 0x4c]
mov dword [rdi], 0x101
lea rbx, [rsp + 0x50]
mov r8d, 0x202
mov rcx, rbx
mov dl, 0xaa
call fcn.140127960
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edi, eax
test eax, eax
je 0x140038994
lea r14, [rsp + 0x50]
mov rcx, r14
call fcn.140146754
mov rbx, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x1400389ef
cmp rbx, 0xa
ja 0x1400389be
mov r14, rsi
test rbx, rbx
je 0x140038982
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1401272b0
mov al, byte [rsi + 0x17]
test al, al
js 0x1400389b8
mov eax, ebx
and al, 0x7f
mov byte [rsi + 0x17], al
mov word [r14 + rbx*2], 0
test edi, edi
setne bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401249d0
mov eax, ebx
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], rbx
jmp 0x14003898d
movzx r9d, al
mov edx, 0xa
mov r8, rbx
sub r8, rdx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14007c580
jmp 0x140038994
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, rbx
jb 0x140038a0f
shr rax, 0x38
mov r14, qword [rsi]
jmp 0x140038967
mov r9, qword [rsi + 8]
jmp 0x1400389c7
Function at 0x140038a20
Capabilities:
Get session user name

Disassembly:
mov edx, 2
jmp 0x140038a30
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x44]
mov dword [r8], 0
mov ecx, edx
xor edx, edx
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x140038b28
lea r14, [rsp + 0x44]
mov r15d, dword [r14]
inc r15d
mov dword [r14], r15d
add r15, r15
mov rcx, r15
call fcn.140123e9c
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.140127960
mov ecx, edi
mov rdx, rbx
mov r8, r14
call sub.Secur32.dll_GetUserNameExW
test al, al
setne dil
je 0x140038b21
test rbx, rbx
je 0x140038b9a
mov rcx, rbx
call fcn.140146754
mov r14, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x140038b74
cmp r14, 0xa
ja 0x140038b43
mov r15, rsi
test r14, r14
je 0x140038aeb
mov r8, r14
add r8, r14
mov rcx, r15
mov rdx, rbx
call fcn.1401272b0
mov al, byte [rsi + 0x17]
test al, al
js 0x140038b3d
mov eax, r14d
and al, 0x7f
mov byte [rsi + 0x17], al
mov word [r15 + r14*2], 0
mov rcx, rbx
call fcn.140123ea4
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401249d0
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test rbx, rbx
jne 0x140038afe
jmp 0x140038b39
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140038a6c
xor edi, edi
jmp 0x140038b06
mov qword [rsi + 8], r14
jmp 0x140038af7
movzx r9d, al
mov edx, 0xa
mov r8, r14
sub r8, rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14007c580
jmp 0x140038afe
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, r14
jb 0x140038b94
shr rax, 0x38
mov r15, qword [rsi]
jmp 0x140038ad2
mov r9, qword [rsi + 8]
jmp 0x140038b4c
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0xa51
call fcn.14016a900
int3
Function at 0x140038a30
Capabilities:
Get session user name

Disassembly:
mov edx, 2
jmp 0x140038a30
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x44]
mov dword [r8], 0
mov ecx, edx
xor edx, edx
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x140038b28
lea r14, [rsp + 0x44]
mov r15d, dword [r14]
inc r15d
mov dword [r14], r15d
add r15, r15
mov rcx, r15
call fcn.140123e9c
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.140127960
mov ecx, edi
mov rdx, rbx
mov r8, r14
call sub.Secur32.dll_GetUserNameExW
test al, al
setne dil
je 0x140038b21
test rbx, rbx
je 0x140038b9a
mov rcx, rbx
call fcn.140146754
mov r14, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x140038b74
cmp r14, 0xa
ja 0x140038b43
mov r15, rsi
test r14, r14
je 0x140038aeb
mov r8, r14
add r8, r14
mov rcx, r15
mov rdx, rbx
call fcn.1401272b0
mov al, byte [rsi + 0x17]
test al, al
js 0x140038b3d
mov eax, r14d
and al, 0x7f
mov byte [rsi + 0x17], al
mov word [r15 + r14*2], 0
mov rcx, rbx
call fcn.140123ea4
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401249d0
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test rbx, rbx
jne 0x140038afe
jmp 0x140038b39
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140038a6c
xor edi, edi
jmp 0x140038b06
mov qword [rsi + 8], r14
jmp 0x140038af7
movzx r9d, al
mov edx, 0xa
mov r8, r14
sub r8, rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14007c580
jmp 0x140038afe
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, r14
jb 0x140038b94
shr rax, 0x38
mov r15, qword [rsi]
jmp 0x140038ad2
mov r9, qword [rsi + 8]
jmp 0x140038b4c
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0xa51
call fcn.14016a900
int3