joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012ca08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14012c7f8

Function at 0x1401313fc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140128428
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140128428
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14013154c
cmp rax, 0xffffffffffffffff
je 0x14013154c
xor edi, edi
test rbp, rbp
jle 0x1401314f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140130660
mov rbx, rax
test rax, rax
jne 0x140131484
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401314ed
mov edx, 0x8000
mov ecx, r14d
call fcn.14012acb4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401298bc
cmp eax, 0xffffffff
je 0x1401314cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140131494
mov edx, r15d
mov ecx, r14d
call fcn.14012acb4
jmp 0x1401314ed
cmp byte [rsi + 0x38], dil
je 0x1401314e4
cmp dword [rsi + 0x34], 5
jne 0x1401314e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401314ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14012e4b4
jmp 0x140131560
jns 0x140131560
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140128428
cmp rax, 0xffffffffffffffff
jne 0x140131518
cmp byte [rsi + 0x30], dil
je 0x140131560
mov edi, dword [rsi + 0x2c]
jmp 0x140131560
mov ecx, r14d
call fcn.1401312ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140131560
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140131560
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140131559
mov eax, dword [rsi + 0x2c]
jmp 0x14013155e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140128428
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1406a7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406a71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406a7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406a706f
add dl, dl
jne 0x1406a7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406a70f6
xor eax, eax
add dl, dl
jne 0x1406a70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406a71ad
add dl, dl
jne 0x1406a70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406a70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406a707e
mov eax, 1
add dl, dl
jne 0x1406a7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406a70fb
sub eax, ebx
mov ebx, 1
jne 0x1406a714c
mov ecx, 1
add dl, dl
jne 0x1406a712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406a713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406a7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406a707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406a7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406a7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406a715d
cmp eax, 0x7d00
jae 0x1406a719b
cmp eax, 0x500
jb 0x1406a7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406a707e
cmp eax, 0x7f
ja 0x1406a719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406a707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406a71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406a707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001c50
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x190
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140001d27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14006c660
mov rsi, rax
mov dword [rsp + 0x28], ebx
test ebx, ebx
je 0x140001d27
lea rax, [0x1400c92b8]
mov qword [rsp + 0x1a0], rax
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x40]
call fcn.140084600
lea rax, vtable.boost::system::system_error.0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x80], setsockopt
mov qword [rsp + 0x78], 0
mov byte [rsp + 0x68], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x120]
call fcn.140004530
nop
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140004580
lea rdx, [0x140101260]
lea rcx, [rsp + 0x90]
call fcn.14008c1c8
nop
mov eax, edi
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007490
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, qword [rcx]
mov rbx, rcx
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x79], rax
mov rax, qword [rcx + 8]
xor r8d, r8d
mov qword [rbp - 0x71], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x69], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x61], rax
mov rax, qword [rcx + 0x20]
mov qword [rbp - 0x59], rax
mov rax, qword [rcx + 0x28]
mov qword [rbp - 0x51], rax
mov rax, qword [rcx + 0x30]
mov qword [rbp - 0x49], rax
mov rax, qword [rcx + 0x38]
lea rcx, [rbp - 0x79]
mov qword [rbp - 0x41], rax
call fcn.140005b60
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
mov r8d, 1
call fcn.140005b60
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
mov r8d, 2
call fcn.140005b60
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
mov r8d, 3
call fcn.140005b60
mov edi, 4
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
mov r8d, edi
call fcn.140005b60
lea r8d, [rdi + 1]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140005b60
lea r8d, [rdi + 2]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140005b60
lea r8d, [rdi + 3]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140005b60
lea r8d, [rdi + 4]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140005b60
lea r8d, [rdi + 5]
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140005b60
lea rdx, [rbp - 0x79]
lea r8, [rbp - 0x75]
sub rdx, rbx
lea rax, [rbx + 8]
sub r8, rbx
nop dword [rax]
mov ecx, dword [rdx + rax - 8]
lea rax, [rax + 0x10]
xor dword [rax - 0x18], ecx
mov ecx, dword [r8 + rax - 0x18]
xor dword [rax - 0x14], ecx
mov ecx, dword [rdx + rax - 0x10]
xor dword [rax - 0x10], ecx
mov ecx, dword [r8 + rax - 0x10]
xor dword [rax - 0xc], ecx
dec rdi
jne 0x1400075c0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140084590
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140008f90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rsi, reloc.WS2_32.dll_accept
lea r14, sym.NsCpuCNMiner.exe_dfJG:nOgkTYTR8c_hIqxq0tLdb_h2_D_bob_7
lea r15, str.Nabil_S._Al_Ramli
nop
mov rax, qword [rbx + 0x28]
mov r9d, 4
mov r10, rbx
xor rax, qword [rbx + 0xa0]
lea r11d, [r9 + 1]
xor rax, qword [rbx + 0x50]
xor rax, qword [rbx]
xor rax, qword [rbx + 0x78]
mov qword [rsp], rax
mov rax, qword [rbx + 0x80]
xor rax, qword [rbx + 0x30]
xor rax, qword [rbx + 8]
xor rax, qword [rbx + 0xa8]
xor rax, qword [rbx + 0x58]
mov qword [rsp + 8], rax
mov rax, qword [rbx + 0x38]
xor rax, qword [rbx + 0xb0]
xor rax, qword [rbx + 0x60]
xor rax, qword [rbx + 0x88]
xor rax, qword [rbx + 0x10]
mov qword [rsp + 0x10], rax
mov rax, qword [rbx + 0xb8]
xor rax, qword [rbx + 0x68]
xor rax, qword [rbx + 0x90]
xor rax, qword [rbx + 0x18]
xor rax, qword [rbx + 0x40]
mov qword [rsp + 0x18], rax
mov rax, qword [rbx + 0x98]
xor rax, qword [rbx + 0x20]
xor rax, qword [rbx + 0x48]
xor rax, qword [rbx + 0xc0]
xor rax, qword [rbx + 0x70]
mov qword [rsp + 0x20], rax
nop word [rax + rax]
lea ecx, [r9 - 3]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
sub ecx, eax
movsxd rax, ecx
mov ecx, r9d
mov r8, qword [rsp + rax*8]
mov eax, 0x66666667
rol r8, 1
imul r9d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
sub ecx, eax
movsxd rax, ecx
mov ecx, 5
xor r8, qword [rsp + rax*8]
mov rax, r10
nop dword [rax + rax]
xor qword [rax], r8
lea rax, [rax + 0x28]
dec rcx
jne 0x1400090d0
inc r9d
add r10, 8
dec r11
jne 0x140009080
mov r9, qword [rbx + 8]
xor r8d, r8d
nop
movsxd rax, dword [r8 + r14 + 0xd3390]
mov ecx, dword [r8 + r14 + 0xd3330]
add r8, 4
mov rdx, qword [rbx + rax*8]
rol r9, cl
mov qword [rbx + rax*8], r9
mov r9, rdx
cmp r8, 0x60
jl 0x1400090f0
lea r11, [rbx + 0x10]
mov edi, 5
mov r10, qword [r11 - 0x10]
mov r9, qword [r11 - 8]
mov rcx, qword [r11]
mov rdx, qword [r11 + 8]
mov r8, qword [r11 + 0x10]
mov rax, r9
not rax
lea r11, [r11 + 0x28]
and rax, rcx
not rcx
and rcx, rdx
xor rax, r10
not rdx
mov qword [r11 - 0x38], rax
xor qword [r11 - 0x30], rcx
and rdx, r8
xor qword [r11 - 0x28], rdx
not r8
and r8, r10
not r10
xor qword [r11 - 0x20], r8
and r10, r9
xor qword [r11 - 0x18], r10
dec rdi
jne 0x140009121
mov rax, qword [rsi]
add rsi, 8
xor qword [rbx], rax
cmp rsi, r15
jl 0x140008fd0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140084590
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140014e30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x8080
call fcn.140096900
sub rsp, rax
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x8060], rax
mov ebx, ecx
lea r8, [rsp + 0x80a0]
lea rcx, [rsp + 0x60]
call fcn.140085ff4
cmp ebx, dword [0x140130c84]
jg 0x140014e85
lea rcx, [rsp + 0x60]
call fcn.140014c90
cmp byte [0x14012ce90], 0
je 0x140014ffd
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rbx
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140014ea0
dec eax
movsxd rcx, eax
cmp rcx, 0x4000
jae 0x140015016
mov qword [rsp + 0x8078], rdi
mov byte [rsp + rcx + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0x48]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x14012ce80]
movzx edx, word [rsp + 0x56]
test ecx, ecx
je 0x140014f2c
cmp ecx, 0xffffffff
jne 0x140014f12
movzx ecx, dx
mov dword [0x14012ce80], ecx
test ecx, ecx
jne 0x140014f03
mov ecx, 1
jmp 0x140014f23
cmp ecx, 0x3bb
jle 0x140014f29
mov ecx, 0x3bb
jmp 0x140014f23
mov eax, dword [0x14012ce88]
add eax, 3
mov dword [0x14012ce88], eax
add ecx, eax
mov dword [0x14012ce80], ecx
movzx edx, cx
movzx ecx, word [rsp + 0x54]
movzx r9d, word [rsp + 0x52]
movzx r8d, word [rsp + 0x50]
movzx eax, dx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._.2d:_.2d:_.2d:_.3d_t_x_t_s_r_n
lea rcx, [rsp + 0x4060]
call fcn.1400852c4
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x14012ce90]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140014ff5
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rax, [rsp + 0x4060]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140014fc1
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x4060]
mov r8, rbx
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x8078]
mov rcx, qword [rsp + 0x8060]
xor rcx, rsp
call fcn.140084590
add rsp, 0x8080
pop rbx
ret
call fcn.140085d40
int3
Function at 0x1400160f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
add r8d, 0xdeadbeef
mov rdi, rdx
mov r11, rcx
add r8d, edx
mov r10d, r8d
mov ebx, r8d
cmp rdx, 0xc
jbe 0x140016223
mov qword [rsp + 0x10], rsi
lea r9, [rdx - 0xd]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r9
mov rsi, rdx
shr rsi, 3
inc rsi
mov rax, rsi
imul rax, rax, 0xfffffffffffffff4
add rdi, rax
movzx eax, byte [r11 + 6]
movzx ecx, byte [r11 + 7]
movzx r9d, byte [r11 + 4]
movzx edx, byte [r11 + 8]
shl ecx, 8
add r9d, r10d
add ecx, eax
movzx eax, byte [r11 + 5]
add edx, r8d
shl ecx, 8
add r11, 0xc
add ecx, eax
movzx eax, byte [r11 - 2]
shl ecx, 8
add r9d, ecx
movzx ecx, byte [r11 - 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 - 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 - 0xa]
shl ecx, 8
add edx, ecx
movzx ecx, byte [r11 - 9]
shl ecx, 8
mov r8d, edx
add ecx, eax
movzx eax, byte [r11 - 0xb]
rol r8d, 4
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 - 0xc]
shl ecx, 8
add ecx, eax
sub ecx, edx
add edx, r9d
add ecx, ebx
xor r8d, ecx
sub r9d, r8d
mov eax, r8d
add r8d, edx
rol eax, 6
xor eax, r9d
sub edx, eax
mov ecx, eax
add eax, r8d
rol ecx, 8
xor ecx, edx
sub r8d, ecx
mov ebx, ecx
add ecx, eax
rol ebx, 0x10
xor ebx, r8d
sub eax, ebx
mov r10d, ebx
add ebx, ecx
ror r10d, 0xd
xor r10d, eax
sub ecx, r10d
mov r8d, r10d
add r10d, ebx
rol r8d, 4
xor r8d, ecx
dec rsi
jne 0x140016140
mov rsi, qword [rsp + 0x10]
cmp rdi, 0xc
ja 0x1400162ac
lea rcx, sym.NsCpuCNMiner.exe_dfJG:nOgkTYTR8c_hIqxq0tLdb_h2_D_bob_7
mov eax, dword [rcx + rdi*4 + 0x1630c]
add rax, rcx
jmp rax
movzx eax, byte [r11 + 0xb]
shl eax, 0x18
add r8d, eax
movzx eax, byte [r11 + 0xa]
shl eax, 0x10
add r8d, eax
movzx eax, byte [r11 + 9]
shl eax, 8
add r8d, eax
movzx eax, byte [r11 + 8]
add r8d, eax
movzx eax, byte [r11 + 7]
shl eax, 0x18
add r10d, eax
movzx eax, byte [r11 + 6]
shl eax, 0x10
add r10d, eax
movzx eax, byte [r11 + 5]
shl eax, 8
add r10d, eax
movzx eax, byte [r11 + 4]
add r10d, eax
movzx eax, byte [r11 + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [r11 + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [r11 + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [r11]
add ebx, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0xe
sub r8d, eax
mov eax, r8d
mov edx, r8d
xor edx, ebx
rol eax, 0xb
sub edx, eax
xor r10d, edx
mov eax, edx
ror eax, 7
sub r10d, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0x10
sub r8d, eax
mov eax, r8d
mov ecx, r8d
xor ecx, edx
rol eax, 4
sub ecx, eax
xor r10d, ecx
mov eax, ecx
rol eax, 0xe
sub r10d, eax
mov eax, r10d
xor r8d, r10d
ror eax, 8
sub r8d, eax
mov eax, r8d
mov rbx, qword [rsp + 0x18]
pop rdi
ret
Function at 0x140018a70
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
lea rax, [r11 + 0x20]
lea r9, [r11 + 0x18]
xor r8d, r8d
mov qword [r11 - 0x28], rax
lea rax, [r11 + 8]
xor ecx, ecx
mov qword [r11 - 0x30], rax
mov rbx, rdx
mov dword [rsp + 0x70], 0
mov qword [r11 - 0x38], 0
mov dword [rsp + 0x60], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [rsp + 0x70]
call fcn.1400851e4
mov ecx, dword [rsp + 0x60]
mov rdi, rax
call fcn.1400851e4
lea r9, [rsp + 0x70]
mov rsi, rax
lea rax, [rsp + 0x78]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov rdx, rbx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x140018b0f
test rdi, rdi
je 0x140018b0d
mov rcx, rdi
call fcn.140085158
xor edi, edi
test rsi, rsi
je 0x140018b1c
mov rcx, rsi
call fcn.140085158
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140018b30
Capabilities:
Manipulate user privileges

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor ebx, ebx
movzx r15d, r9b
mov r14, rdx
mov qword [rbp - 0x29], rbx
mov edi, ebx
test rdx, rdx
jne 0x140018ba1
mov qword [rbp - 0x21], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x21]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140018bbc
mov rcx, qword [rbp - 0x21]
call fcn.1400189d0
mov rdi, rax
test rax, rax
je 0x140018b95
mov rax, qword [rax]
mov qword [rbp - 0x29], rax
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140018bbc
call fcn.140018a70
mov qword [rbp - 0x29], rax
test rax, rax
jne 0x140018bc6
lea rdx, [rbp - 0x29]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
cmp qword [rbp - 0x29], rbx
je 0x140018cb7
lea rax, [rbp - 0x19]
test rax, rax
je 0x140018cb7
lea rdx, str.SeLockMemoryPrivilege
mov eax, ebx
mov ecx, reloc.WS2_32.dll_setsockopt
test rdx, rdx
mov qword [rbp - 0x11], rdx
lea r9, [rbp - 9]
cmovne eax, ecx
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 1]
add ax, ax
mov r8d, 0xf0fff
mov qword [rsp + 0xc0], rsi
mov word [rbp - 0x19], ax
add ax, 2
mov qword [rbp + 7], rbx
mov word [rbp - 0x17], ax
xor eax, eax
mov dword [rbp - 1], 0x20000
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
je 0x140018c50
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
mov rsi, rbx
jmp 0x140018c54
mov rsi, qword [rbp - 9]
mov rdx, qword [rbp - 0x29]
mov rcx, rsi
test r15b, r15b
je 0x140018c72
lea r8, [rbp - 0x19]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
jmp 0x140018c87
lea r9, [rbp - 0x19]
xor r8d, r8d
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_LsaRemoveAccountRights]
mov rcx, rsi
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rsi, qword [rsp + 0xc0]
test r14, r14
jne 0x140018cad
test rdi, rdi
je 0x140018cad
mov rcx, rdi
call fcn.140085158
test r15d, r15d
sete bl
mov eax, ebx
jmp 0x140018cb9
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001c3d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov ecx, dword [0x140133b88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
test rax, rax
je 0x14001c429
mov rax, qword [rax + 8]
test rax, rax
je 0x14001c429
mov rcx, qword [rax]
test rcx, rcx
je 0x14001c429
mov qword [rax], rdi
movzx eax, byte [rcx]
cmp rax, rbx
jb 0x14001c424
mov byte [rcx + rbx], al
mov rax, rcx
add rsp, 0x28
pop rdi
pop rbx
ret
call fcn.140085158
lea rcx, [rbx + 1]
call fcn.1400851e4
cmp rbx, 0xff
ja 0x14001c43e
movzx edi, bl
mov byte [rax + rbx], dil
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x14001c450
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov ecx, dword [0x140133b88]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c47d
mov r8, qword [rax + 8]
jmp 0x14001c480
xor r8d, r8d
cmp rdi, 0xff
ja 0x14001c4a4
test r8, r8
je 0x14001c4a4
cmp qword [r8], 0
jne 0x14001c4a4
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.140085158

Function at 0x14001c800
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
xor r8d, r8d
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140133b5c], eax
test eax, eax
je 0x14001c85b
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.1400010a0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x14001d060
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14001d0ad
call fcn.14001d160
mov dword [rsp + 0x28], ebx
call fcn.14006c660
mov rcx, qword [rsp + 0x28]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001d131
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140133b88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x38]
mov ecx, dword [0x140133b88]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.14001d450
test rax, rax
je 0x14001d10d
cmp rbx, 0xffffffffffffffff
je 0x14001d0fd
inc rbx
mov r8, rsi
mov rcx, rdi
call fcn.14001d450
test rax, rax
jne 0x14001d0f4
mov rdx, qword [rsp + 0x48]
mov ecx, dword [0x140133b88]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001d12e
call fcn.140085158
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14001da50
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1f0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x208], rbx
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov eax, 1
lock xadd dword [0x14012cdf0], eax
inc eax
cmp eax, 1
jne 0x14001daac
lea ecx, [rax + 1]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14012cdf4], eax
xor edi, edi
mov ecx, edi
lock xadd dword [0x14012cdf4], ecx
test ecx, ecx
je 0x14001dac2
call fcn.140001d40
nop
mov ecx, 0x38
call fcn.1400851e4
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14001dae8
or r9, 0xffffffffffffffff
mov rdx, rbx
mov rcx, rax
call fcn.140044bd0
mov rdi, rax
mov qword [rbx + 8], rdi
mov rcx, qword [rdi + 0x30]
mov qword [rbx + 0x10], rcx
mov rax, rbx
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140084590
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rdi
ret