joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180062f60
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], 0
call fcn.180062e70
mov dword [rsp + 0x68], 0
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180062dd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
mov rcx, rdi
call fcn.180074c80
mov dword [rsp + 0x30], 1
mov rax, qword [rdi]
test rax, rax
je 0x180063026
cmp qword [rax], 0
je 0x180063026
lea rbx, [0x1800ee208]
mov qword [rsp + 0x38], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, rdi
call fcn.180063290
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
jmp 0x180063053
lea rax, str.wtf__cannot_create_the_thread
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1800af438
lea rdx, [0x180153330]
lea rcx, [rsp + 0x50]
call fcn.1800b5008
nop
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800aeb40
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x180063080
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x58], rax
call fcn.180062e70
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.180062ef0
nop
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x50], rdi
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rbx
cmp rbx, rdi
je 0x180063106
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800630ed
mov rcx, qword [rcx]
mov edx, 0x29a
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rbx, 0x10
cmp rbx, rdi
jne 0x1800630e2
mov qword [rsp + 0x48], rbx
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x180063173
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
je 0x180063159
nop
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180063146
lock dec dword [rbx + 8]
jne 0x180063146
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x180063146
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
add rdi, 0x10
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jne 0x180063120
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.18008caa0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800aeb40
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1800682c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
lea r8, [0x1800f04a8]
lea rcx, [rsp + 0x20]
lea edx, [rax + 0xe]
mov r9d, 0x270e
mov dword [rsp + 0x20], 0x276f2759
mov dword [rsp + 0x24], 0x27472764
mov dword [rsp + 0x28], 0x277a2760
mov dword [rsp + 0x2c], 0x277c276b
mov dword [rsp + 0x30], 0x276b2760
mov dword [rsp + 0x34], 0x274b277a
mov qword [rsp + 0x38], 0x270e2760
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
call fcn.18005adc0
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1800aeb40
add rsp, 0x130
pop rbp
ret
Function at 0x1800821c0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180082212
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x20], eax
call fcn.1800d2540
test ebx, ebx
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
jne 0x180082227
mov eax, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800aeb40
add rsp, 0x40
pop rdi
ret
lea rdx, [0x1801097a8]
lea rcx, [rsp + 0x20]
call fcn.180081fd0
int3

Function at 0x1800824f0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x30], rax
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 [0x1800ef14c], eax
test eax, eax
je 0x180082567
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800aeb40
add rsp, 0x40
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.180012a00]
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]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800aeb40
add rsp, 0x40
pop rbx
ret
Function at 0x180082c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x180082c7c
call fcn.180082d30
mov dword [rsp + 0x20], ebx
call fcn.1800d2540
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x180082d11
mov qword [rsp + 0x38], rbx
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1800f05a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1800f05a8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.180082ec0
test rax, rax
je 0x180082ced
cmp rbx, 0xffffffffffffffff
je 0x180082cdd
inc rbx
mov r8, rsi
mov rcx, rdi
call fcn.180082ec0
test rax, rax
jne 0x180082cd4
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1800f05a8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180082d0e
call fcn.18008caa0
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800aeb40
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180083dd0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180083e1c
mov dword [rsp + 0x30], 0x2719
call fcn.1800d2540
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x180083eb6
mov qword [rsp + 0x258], rcx
mov qword [rsp + 0x48], rcx
xor ecx, ecx
mov qword [rsp + 0x490], rsi
mov dword [rsp + 0x250], 1
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rbx + 1]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x250]
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.1800d2540
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
js 0x180083eac
mov dword [rsp + 0x30], 0
call fcn.1800d2540
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
mov rsi, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1800aeb40
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret

Function at 0x180084050
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov rbx, rcx
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 1
call fcn.1800d2540
mov rbx, qword [rbx + 8]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x48]
lea r8d, [rax + 1]
mov rcx, rbx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.1800d2540
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1800840d4
cmp eax, 0x4d2
jne 0x1800840d9
call fcn.1800d2540
test ebx, ebx
jne 0x1800840e2
call fcn.1800d2540
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800aeb40
add rsp, 0x60
pop rbx
ret

Function at 0x1800862d0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1800f0590], eax
inc eax
cmp eax, 1
jne 0x18008631d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1800f0594], eax
test dil, dil
je 0x180086330
xor eax, eax
lock xadd dword [0x1800f0594], eax
test eax, eax
jne 0x180086354
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800aeb40
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rcx
call fcn.1800d2540
lea rdx, str.winsock
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.180081fd0
int3
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020504]
cmp r15, 1
jne 0x140004953
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205e4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205e4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205e4]
call fcn.14000dd0c
mov rcx, qword [0x1400205e4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205ec]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f180]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14003f65f
jmp rsp
in al, dx
jmp rbp
in eax, dx
jmp rsi
out 0xed, eax
in eax, dx
push rbx
clc
idiv bh
jne 0x14003f71e
invalid
sub edi, edi
cmp bpl, byte [rcx]
dec dword [rbx + 0x3b]
sub bh, bh
cmp rbp, qword [r10]
dec dword [rbx + 0x3b]
sub bh, bh
invalid
mov esi, 0xfffefaff
invalid
in eax, dx
invalid
out dx, al
hlt
sub bh, bh
cmp spl, byte [r15]
dec dword [rcx + 0x3a]
invalid
Function at 0x1400279dc
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.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
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.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
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 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
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 0x140028c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
xor ch, byte [rsi]
xor esi, dword [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor ch, byte [rsi]
xor esi, dword [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
Function at 0x180002940
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x1800750b0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ebp, dword [rcx]
test ebp, ebp
je 0x18000298c
cmp qword [rdx + 0x18], 8
jb 0x180002985
mov rcx, qword [rdx]
call fcn.18001af28
xor edi, edi
jmp 0x180002a16
cmp qword [rdx + 0x18], 8
jb 0x180002998
mov r8, qword [rdx]
jmp 0x18000299b
mov r8, rdx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x1800029e4
mov qword [rsi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800029ce
lea rdx, str.RZh5FAFphJOxKVeutKuNPe0paXbYCiwevQki6c4bcp26wkhR5Hn82R2NONAFOezqtU1YkoY6hKR4cDFlVwBX3E
xor ecx, ecx
call fcn.1800124b0
jmp 0x1800029fb
mov r8, rdi
lea rdx, str.8dKCvrIKfrlEq5cgpLBIZowDSXAW2W_4UCzns82peJOXOZ42kl1E4xFISIq7g12E1zxkyIgPT6RI2KB_r8ZGSbYvyw
mov ecx, 4
call fcn.1800124b0
jmp 0x1800029fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.6mu7rjigpkZg5VVxbSucL48fDulxKF2lIY9kmn1PnX0FV1Zsv_gTsHYLXbIgAhJrkLYvCqjr19nwnxMIacPHLSUfDFIZw
xor ecx, ecx
call fcn.1800124b0
xor edi, edi
mov ebp, edi
cmp qword [rsi + 0x20], rdi
setne bpl
cmp qword [rbx + 0x18], 8
jb 0x180002a16
mov rcx, qword [rbx]
call fcn.18001af28
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov eax, ebp
mov word [rbx], di
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18001a000
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002a50
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x1800750b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rdx
mov ebp, dword [rcx]
test ebp, ebp
je 0x180002a9f
cmp qword [rdx + 0x18], 8
jb 0x180002a98
mov rcx, qword [rdx]
call fcn.18001af28
xor edi, edi
jmp 0x180002b82
cmp qword [rdx + 0x18], 8
jb 0x180002aab
mov r8, qword [rdx]
jmp 0x180002aae
mov r8, rdx
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
xor edi, edi
test rax, rax
jne 0x180002b65
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x180002b48
mov dword [rsp + 0x28], 0x2a
mov qword [rsp + 0x2c], 0x1f0001
cmp qword [rbx + 0x18], 8
jb 0x180002aee
mov rax, qword [rbx]
jmp 0x180002af1
mov rax, rbx
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x180002b35
lea rcx, [rsi + 0x10]
call fcn.180002870
test eax, eax
jne 0x180002b1c
lea rdx, str.mn4b172ncESVoTF3wbnVIsdX_N65w9KLzDlryCfSEbsNNgSxsvaWkgQYyaEtRIT6BGemia7hloUm_w
xor ecx, ecx
call fcn.1800124b0
jmp 0x180002b48
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x180002b35
lea rdx, str.xGfn7C5jrb0OaK1fjLgiudkEQ8RYTh4FQT9nlVjiq7HMrWLZNF5Yz0AUHzrq_dlCIlz2eSD7T9RUfIE6Og
xor ecx, ecx
call fcn.1800124b0
jmp 0x180002b48
lea rdx, [rsp + 0x28]
lea rcx, [0x1800634c8]
call rax
test rax, rax
jne 0x180002b65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._dFe5FB4xGPjEFYuAsqthbFAAZZZlsh9nZZKcc4DJFYIjzPoBRfyrpmzdpSGPZJziRxu_RFNHKi613DFyi1WmrcVSZoVnKZPM6E
xor ecx, ecx
call fcn.1800124b0
mov qword [rsi + 0x20], rdi
jmp 0x180002b69
mov qword [rsi + 0x20], rax
mov ebp, edi
cmp qword [rsi + 0x20], rdi
setne bpl
cmp qword [rbx + 0x18], 8
jb 0x180002b82
mov rcx, qword [rbx]
call fcn.18001af28
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov eax, ebp
mov word [rbx], di
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18001a000
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002c50
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1800750b0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rcx + 0x18], 7
xor ebx, ebx
mov qword [rcx + 0x10], rbx
mov word [rcx], bx
xor r8d, r8d
lea rdx, [0x180061134]
call fcn.180008eb0
nop
mov qword [rsi + 0x38], 7
mov qword [rsi + 0x30], rbx
mov word [rsi + 0x20], bx
xor r8d, r8d
lea rdx, [0x180061134]
lea rcx, [rsi + 0x20]
call fcn.180008eb0
nop
mov qword [rsi + 0x10], rbx
cmp qword [rsi + 0x18], 8
jb 0x180002cdf
mov rax, qword [rsi]
jmp 0x180002ce2
mov rax, rsi
mov word [rax], bx
mov qword [rsi + 0x30], rbx
cmp qword [rsi + 0x38], 8
jb 0x180002cf6
mov rax, qword [rsi + 0x20]
jmp 0x180002cfa
lea rax, [rsi + 0x20]
mov word [rax], bx
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x60], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.18001cc50
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, str.TEMP
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x180002e6d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x180002e6d
cmp word [rsp + 0x60], 0
jne 0x180002d60
mov r8, rbx
jmp 0x180002d7b
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180002d70
lea rdx, [rsp + 0x60]
lea rcx, [rsi + 0x20]
call fcn.1800086b0
mov r8d, 1
lea rdx, [0x18006183c]
lea rcx, [rsi + 0x20]
call fcn.1800086b0
cmp word [rdi], 0
jne 0x180002daa
mov r8, rbx
jmp 0x180002dbb
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdi + r8*2], 0
jne 0x180002db0
mov rdx, rdi
lea rcx, [rsi + 0x20]
call fcn.1800086b0
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.1800027b0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsi + 0x20]
call fcn.180008570
nop
cmp qword [rsp + 0x38], 8
jb 0x180002dfc
mov rcx, qword [rsp + 0x20]
call fcn.18001af28
mov r8d, 4
lea rdx, [0x180061840]
lea rcx, [rsi + 0x20]
call fcn.1800086b0
cmp word [rdi], 0
je 0x180002e2a
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180002e20
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1800086b0
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.1800027b0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.180008570
nop
cmp qword [rsp + 0x38], 8
jb 0x180002e6d
mov rcx, qword [rsp + 0x20]
call fcn.18001af28
nop
mov rax, rsi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18001a000
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r14
pop rdi
pop rsi
ret