joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180084808
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.18007af5c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007af5c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180084958
cmp rax, 0xffffffffffffffff
je 0x180084958
xor edi, edi
test rbp, rbp
jle 0x180084903
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007429c
mov rbx, rax
test rax, rax
jne 0x180084890
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800848f9
mov edx, 0x8000
mov ecx, r14d
call fcn.18008468c
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.180079e18
cmp eax, 0xffffffff
je 0x1800848d9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800848a0
mov edx, r15d
mov ecx, r14d
call fcn.18008468c
jmp 0x1800848f9
cmp byte [rsi + 0x38], dil
je 0x1800848f0
cmp dword [rsi + 0x34], 5
jne 0x1800848f0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800848f9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180074314
jmp 0x18008496c
jns 0x18008496c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007af5c
cmp rax, 0xffffffffffffffff
jne 0x180084924
cmp byte [rsi + 0x30], dil
je 0x18008496c
mov edi, dword [rsi + 0x2c]
jmp 0x18008496c
mov ecx, r14d
call fcn.18007f8a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18008496c
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 0x18008496c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180084965
mov eax, dword [rsi + 0x2c]
jmp 0x18008496a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007af5c
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 0x180085ff0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180086018
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180086018
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002b1b8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14003fda0], eax
call fcn.14002b940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003fda0], 0
jne case.default.0x14002b20e
mov ecx, 1
call fcn.14002b940
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
hlt
Function at 0x1400110cd
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400199e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140030066]
call fcn.1400117b2
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140019a38
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140019b4a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140019ae3
cmp qword [rbp + 0x28], 0
jle 0x140019ae3
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140019a81
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14001173f
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140019b39
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140019b39
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011447
Capabilities:
Terminate process

Disassembly:
jmp 0x14001c480
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14001155f
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001cfb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001cfd0
xor al, al
jmp 0x14001d051
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001cfe3
xor al, al
jmp 0x14001d051
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001d00d
xor al, al
jmp 0x14001d051
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001d021
xor al, al
jmp 0x14001d051
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001d033
xor al, al
jmp 0x14001d051
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001d04f
xor al, al
jmp 0x14001d051
mov al, 1
add rsp, 0x38
ret
Function at 0x140011799
Capabilities:
Write file on windows

Disassembly:
jmp 0x140016510
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140029040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140030066]
call fcn.1400117b2
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140016577
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001657e
mov al, 1
jmp 0x1400166ce
call fcn.140011226
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011226
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001161d
movzx eax, al
test eax, eax
je 0x1400165cf
xor al, al
jmp 0x1400166ce
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140016634
cmp dword [rbp + 0x154], 1
je 0x14001663f
cmp dword [rbp + 0x154], 3
je 0x1400166bd
jmp 0x1400166cc
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001668f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001668f
xor al, al
jmp 0x1400166ce
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400166aa
mov dword [rbp + 0x154], 1
jmp 0x1400166b4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400166ce
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400166ce
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400245f0]
call fcn.14001166d
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001139d
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14001a8a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400117fd
movzx eax, al
test eax, eax
jne 0x14001a8c0
mov ecx, 7
call fcn.140011681
nop
mov byte [rsp + 0x20], 0
call fcn.1400116bd
mov byte [rsp + 0x21], al
cmp dword [0x140029730], 1
jne 0x14001a8e4
mov ecx, 7
call fcn.140011681
nop
jmp 0x14001a93c
cmp dword [0x140029730], 0
jne 0x14001a937
mov dword [0x140029730], 1
lea rdx, [0x140023770]
lea rcx, [0x140023440]
call fcn.14001137f
test eax, eax
je 0x14001a918
mov eax, 0xff
jmp 0x14001aa41
lea rdx, [0x140023330]
lea rcx, [section..rdata]
call fcn.1400116a4
mov dword [0x140029730], 2
jmp 0x14001a93c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011659
call fcn.14001158c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001a999
mov rcx, qword [rsp + 0x30]
call fcn.1400112d5
movzx eax, al
test eax, eax
je 0x14001a999
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140031020]
nop
call fcn.1400115f5
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001a9cd
mov rcx, qword [rsp + 0x38]
call fcn.1400112d5
movzx eax, al
test eax, eax
je 0x14001a9cd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011776
nop
call fcn.14001aaf0
mov dword [rsp + 0x28], eax
call fcn.14001155f
movzx eax, al
test eax, eax
jne 0x14001a9ec
mov ecx, dword [rsp + 0x28]
call fcn.140011087
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001a9fb
call fcn.14001178a
nop
xor edx, edx
mov cl, 1
call fcn.1400112a8
mov eax, dword [rsp + 0x28]
jmp 0x14001aa41
add rsp, 0x68
ret
Function at 0x140020f40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140020f4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140020f5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140020f45
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140020f75
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140020f62
sub eax, 3
jb 0x140020f8f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140020fc6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140020fb6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140020fb4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140020fa3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140020f02
jmp 0x140020f4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xde00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140021012
cmp rsi, rcx
jae 0x14002101a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140020ff9
cmp al, 0x8f
ja 0x140020ff9
cmp byte [rsi - 2], 0xf
je 0x140020fff
sub al, 0xe8
cmp al, 1
ja 0x140020fe3
cmp rsi, rcx
jae 0x14002101a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140020fe9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002101a
lodsb al, byte [rsi]
jmp 0x140020ff9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1e000]
mov eax, dword [rdi]
or eax, eax
je 0x140021077
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x211dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140021027
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140021071
mov qword [rbx], rax
add rbx, 8
jmp 0x140021047
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400210b1
cmp al, 0xef
ja 0x1400210a3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140021083
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140021092
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140021105
sub rsp, 0xffffffffffffff80
jmp 0x1400012d0
Function at 0x180001370
Capabilities:
Check os version
Get token membership

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x38]
sub rsp, 0x138
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x98
xor ebx, ebx
call fcn.180002bf8
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1800013b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x1800014d6
cmp dword [rsp + 0x50], 2
jne 0x1800014d0
cmp dword [rsp + 0x44], 5
jbe 0x1800014d0
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800014c6
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x50]
mov r9d, 4
mov dword [rbp + 0x50], ebx
lea r8, [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xe]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x18000142f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800013b0
cmp dword [rbp + 0x60], 3
jne 0x1800014b1
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x50]
mov r9d, 8
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18000141c
xor edx, edx
mov dword [rbp + 0x68], 0x44
lea r9, [rbp + 0x68]
lea r8, [rbp - 0x20]
lea ecx, [rdx + 0x1a]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x18000149e
mov rcx, qword [rsp + 0x38]
lea r8, [rbp + 0x58]
lea rdx, [rbp - 0x20]
mov dword [rbp + 0x58], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x18000149e
mov ebx, dword [rbp + 0x58]
jmp 0x1800014a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800014b9
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800014cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
jmp 0x1800014d6
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
add rsp, 0x138
pop rbx
pop rbp
ret
Function at 0x1800014e0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
xor edx, edx
lea rcx, [rbp - 0x45]
mov r8d, 0x98
xor ebx, ebx
call fcn.180002bf8
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x49], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x18000152c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x180001610
cmp dword [rbp - 0x39], 2
jne 0x18000160e
cmp dword [rbp - 0x45], 5
jbe 0x18000160e
mov qword [rbp + 0x6f], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x6f]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001608
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
xor r9d, r9d
mov dword [rbp + 0x67], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x19]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1800015f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800015f6
mov edx, dword [rbp + 0x67]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800015f6
mov r9d, dword [rbp + 0x67]
lea rax, [rbp + 0x67]
mov rcx, qword [rbp + 0x6f]
mov r8, rdi
mov edx, 0x19
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800015e5
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov rcx, qword [rdi]
movzx edx, byte [rax]
dec edx
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ebx, dword [rax]
jmp 0x1800015eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800015fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000160e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1800027c4
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
sub rsp, 0x28
lea r8, [0x180001128]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x180003288], rax
test rax, rax
je 0x1800027f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18000280b
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rcx, [0x180002b20]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add rsp, 0x28
ret

Function at 0x180002830
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x18000287b
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
inc eax
cmp eax, 1
jbe 0x180002895
add ebx, ecx
cmp ebx, edi
jl 0x180002854
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
jmp 0x180002880

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, rbx
mov rcx, rdi
mov r8d, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800029e0

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x180002a2b
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov ecx, eax
inc eax
cmp eax, 1
jbe 0x180002a45
add ebx, ecx
cmp ebx, edi
jl 0x180002a04
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
jmp 0x180002a30

Function at 0x180002b58
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rcx
cmp edx, 1
jne 0x180002be7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x104
lea rdx, [0x180003180]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x180001210]
lea rcx, [0x180003180]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
jne 0x180002be7
xor ecx, ecx
test rdi, rdi
jne 0x180002bd6
and qword [rsp + 0x28], rdi
lea r8, [0x180002810]
and dword [rsp + 0x20], edi
mov r9, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180002be7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002be7
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
call sym.client_amd64.dll_EntryPoint
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14000b710
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14000b7b0
jmp 0x14000b79f
jae 0x14000b86f
cmp r8, 0x201
jae 0x14000b7b0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000b807
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000b7df
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002d5d0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000b830
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000b8db
mov r8d, r13d
cmp r12, r8
jne 0x14000b790
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000b90f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000b79f
jmp 0x14000b7b0
cmp r14, r8
jb 0x14000b929
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000d190
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14000b8c4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140003c80
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000b8af
jmp 0x14000b8c4
lea rcx, [0x1400308c0]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14002e2f0
jmp 0x14000b93e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14002e640
ud2