joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038af0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x208]
cmp dword [rdx + 0x18], 0
je 0x140038b3d
cmp qword [rcx + 0x848], 0
je 0x140038b3d
lea rdx, str.REST__d
add rcx, 0x7c0
xor r8d, r8d
call fcn.1400447d0
test eax, eax
jne 0x140038b47
mov dword [rbx + 0x884], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140038660
add rsp, 0x20
pop rbx
ret

Function at 0x140038df0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x7c0
mov rax, qword [rbx]
mov rdx, qword [rax + 0x208]
mov eax, dword [rdx + 0x18]
cmp eax, 1
jne 0x140038e3e
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140038e3e
lea rdx, str.SIZE__s
call fcn.1400447d0
test eax, eax
jne 0x140038e7c
mov dword [rbx + 0x884], 0x17
add rsp, 0x20
pop rbx
ret
test eax, eax
je 0x140038e6f
cmp qword [rbx + 0x848], 0
je 0x140038e6f
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400447d0
test eax, eax
jne 0x140038e7c
mov dword [rbx + 0x884], 0x1a
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140038660
add rsp, 0x20
pop rbx
ret

Function at 0x140039060
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp dword [r9 + 0x7ac], 0
je 0x1400390b7
cmp qword [rcx + 0x848], 0
je 0x1400390b7
cmp dword [r9 + 0x778], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x874]
cmp eax, edx
je 0x1400390b7
mov rax, qword [r9 + 0x208]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x18], 1
mov edx, dword [r9 + 0x778]
jmp fcn.140036d50
jmp fcn.140038df0

Function at 0x1400390c0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x51eb851f
mov edi, r8d
mov r8d, edx
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x140039112
lea rdx, str.Couldnt_set_desired_mode
call fcn.140016bd0
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r8d, 0xc8
je 0x140039127
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140016ce0
cmp edi, 0x13
jne 0x140039136
mov rcx, rsi
call fcn.140038df0
jmp 0x140039166
cmp edi, 0x14
jne 0x140039145
mov rcx, rsi
call fcn.140037af0
jmp 0x140039166
cmp edi, 0x15
jne 0x140039150
lea r8d, [rdi - 8]
jmp 0x140039159
cmp edi, 0x16
jne 0x140039168
lea r8d, [rdi - 8]
mov edx, 1
mov rcx, rsi
call fcn.1400387b0
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003dde0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.14004eafc
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14003de46
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14003de46
lea rcx, [rsp + 0x20]
call qword [case.0x14000dcb6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140049680
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140049680
add rsp, 0x148
ret
jmp 0x14003dde0

Function at 0x14003de60
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.14004eafc
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14003de46
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14003de46
lea rcx, [rsp + 0x20]
call qword [case.0x14000dcb6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140049680
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140049680
add rsp, 0x148
ret
jmp 0x14003dde0

Function at 0x14003fc90
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x1400457f0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x140045829
lea edx, [rax + 0x2e]
mov rcx, rdi
call fcn.14004da10
test rax, rax
je 0x140045827
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400466a0
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r8, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.140046910
lea r8, [rbx + 7]
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.140046910
lea r8, [rbx + 0xe]
lea rdx, [rdi + 0x10]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140046910
Function at 0x1400467d0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400467f0
test rbx, rbx
je 0x14004680a
lea rcx, [rbx + rbx]
call qword [section..data]
jmp 0x140046817
lea rcx, [0x140098ae3]
call qword [case.0x14000dcb6.0]
mov rdi, rax
test rax, rax
jne 0x140046827
lea eax, [rdi + 0x1b]
jmp 0x1400468f3
xor ecx, ecx
test rbx, rbx
je 0x140046845
nop
movzx eax, byte [rcx + rsi]
mov byte [rdi + rcx*2 + 1], 0
inc rcx
mov byte [rdi + rcx*2 - 2], al
cmp rcx, rbx
jb 0x140046830
lea rcx, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400468e0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400468d3
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov rdx, rdi
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [fcn.140049fdc]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140046910
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
mov rdi, r8
mov rbx, rdx
lea rcx, [rbp - 0x38]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rbp - 0x40], 8
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140046a4c
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx r8d, byte [rdi + 5]
xor eax, eax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
mov qword [rbp - 0x28], rax
mov byte [rbp - 0x1c], cl
shl cl, 7
movzx eax, dl
shr al, 1
shl dl, 6
mov word [rbp - 0x28], 0x208
or al, cl
movzx ecx, byte [rdi + 2]
mov dword [rbp - 0x24], 0x6601
mov byte [rbp - 0x1b], al
movzx eax, cl
shl cl, 5
shr al, 2
mov dword [rbp - 0x20], 8
or al, dl
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shl dl, 4
shr al, 3
or al, cl
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shl cl, 3
shr al, 4
or al, dl
mov edx, 8
mov byte [rbp - 0x18], al
movzx eax, r8b
shl r8b, 2
shr al, 5
or al, cl
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
mov byte [rbp - 0x15], cl
lea rcx, [rbp - 0x1c]
or al, r8b
mov byte [rbp - 0x16], al
call fcn.140049120
mov rcx, qword [rbp - 0x38]
xor r9d, r9d
lea rax, [rbp - 0x30]
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x14]
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x140046a50
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x140046a98
mov ecx, dword [rbp - 0x40]
mov rax, qword [rsi]
xor r9d, r9d
mov dword [rsp + 0x30], ecx
lea rcx, [rbp - 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 0x30]
xor edx, edx
mov qword [rbx], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140049680
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400491f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x140049232
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140049275
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400492d1
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
dec rbp
jne 0x140049290
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140049313
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140087b5a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140087b5b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400492e0
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400523a8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140052210
Function at 0x14006b09c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
call fcn.14006b2d8
xor r10d, r10d
test eax, eax
js 0x14006b2c5
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x14006b11e
lea rdx, [rbx + 8]
lea r8, [rbx + 8]
lea rdx, [rdx + r9*4]
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 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
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
lea rdx, [rdx - 0x10]
lea r8, [r8 + 0x10]
cmp r10, r9
jl 0x14006b0d5
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x14006b2c3
lea r10, [rbx + 2]
lea rdi, [0x140000000]
lea r10, [r10 + 0x10]
inc r11d
mov r9d, dword [r10 - 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x91bf0]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
mov r8d, dword [rdi + rdx*4 + 0x917f0]
movzx eax, byte [r10]
xor r8d, dword [rdi + rcx*4 + 0x90ff0]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x913f0]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
mov r9d, dword [r10 + 2]
xor r8d, dword [rdi + rcx*4 + 0x90bf0]
mov eax, r9d
mov dword [r10 - 2], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x91bf0]
movzx eax, byte [r10 + 3]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
mov r8d, dword [rdi + rdx*4 + 0x917f0]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x90ff0]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x913f0]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x90bf0]
mov eax, r9d
mov dword [r10 + 2], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x91bf0]
movzx eax, byte [r10 + 7]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
mov r8d, dword [rdi + rdx*4 + 0x917f0]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x90ff0]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x913f0]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x90bf0]
mov r9d, dword [r10 + 0xa]
mov dword [r10 + 6], r8d
movzx edx, byte [rdi + rax*4 + 0x91bf0]
movzx eax, byte [r10 + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
mov r8d, dword [rdi + rdx*4 + 0x90ff0]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x913f0]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x917f0]
movzx ecx, byte [rdi + rax*4 + 0x91bf0]
xor r8d, dword [rdi + rcx*4 + 0x90bf0]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x14006b13c
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006c620
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x5c]
call fcn.14004d2b0
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14006cfb0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0x50], rax
and qword [rsp + 0x30], 0
call qword [0x1400a7fa8]
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14006d047
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14006d03c
mov rax, qword [rsp + 0x38]
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov r9d, reloc.WS2_32.dll_recv
xor edx, edx
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140049680
add rsp, 0x68
ret
Function at 0x14006eac0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xor r14d, r14d
mov rsi, rdx
lea ecx, [r14 + 3]
call fcn.140006740
call fcn.140006670
mov r8, qword [rsi]
mov rcx, rax
mov edx, 0x2712
mov rdi, rax
call fcn.140006b50
lea r8, [0x14006ebc0]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.140006b50
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.140006b50
lea r8, [rbp - 0x20]
mov edx, 0x2722
mov rcx, rdi
mov dword [rbp - 0x12], 0x302e31
mov dword [rbp - 0x1c], 0x2d6c7275
mov dword [rbp - 0x20], 0x6362696c
mov dword [rbp - 0x18], 0x6e656761
mov word [rbp - 0x14], 0x2f74
call fcn.140006b50
mov rcx, rdi
call fcn.140006730
lea ecx, [r14 + 1]
movzx ebx, r14b
test eax, eax
cmove ebx, ecx
mov rcx, rdi
call fcn.140006660
mov rdx, qword [rsi]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14006eb99
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140049680
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x14006f6e4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x180
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebx, ebx
mov ebp, ecx
mov r14, rdx
lea ecx, [rbx + 2]
xor edx, edx
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x40], 0x130
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14006f806
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x14006f7fd
lea rdx, [rsp + 0x6c]
lea rcx, str.explorer.exe
call fcn.140050570
test eax, eax
jne 0x14006f7df
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14006f7df
mov r8, r14
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14006f7c5
mov r9d, dword [rsp + 0x34]
mov rcx, qword [r14]
lea rax, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, ntohs
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14006f7c5
cmp ebp, dword [rsp + 0x30]
je 0x14006f7f2
cmp qword [r14], rbx
je 0x14006f7d6
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x14006f74c
mov rcx, rdi
mov bl, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140049680
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140071604
Capabilities:
Check if file exists
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov r14, rcx
mov word [rbp - 6], 0x6957
mov word [rbp + 0x14], 0x736e
mov dword [rbp + 0x19], 0x6f475c6c
mov dword [rbp + 0xd], 0x5c6e6f69
mov dword [rbp + 0x22], 0x6f726843
mov word [rbp], 0x5c73
mov dword [rbp + 7], 0x6556746e
mov dword [rbp - 0xd], 0x6f736f72
mov dword [rbp - 0x15], 0x45524157
mov dword [rbp + 3], 0x65727275
mov dword [rbp + 0x1e], 0x20656c67
mov dword [rbp - 0x11], 0x63694d5c
mov word [rbp + 0x11], 0x6e55
mov byte [rbp + 0x13], 0x69
mov word [rbp - 9], 0x7466
mov byte [rbp + 2], 0x43
mov word [rbp + 0x17], 0x6c61
mov word [rbp + 0x26], 0x656d
mov dword [rbp - 0x19], 0x54464f53
mov word [rbp + 0xb], 0x7372
mov word [rbp - 3], 0x6f64
xor edi, edi
mov byte [rbp + 0x28], dil
mov byte [rbp + 0x1d], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 7], 0x5c
mov byte [rbp - 1], 0x77
mov byte [rbp - 4], WSAGetLastError
mov byte [rbp + 0x16], reloc.WS2_32.dll_WSACleanup
mov word [rbp - 0x1b], WSAGetLastError
mov dword [rbp - 0x29], 0x74736e49
mov word [rbp - 0x22], 0x6f4c
mov word [rbp - 0x25], 0x6c61
mov dword [rbp - 0x20], 0x69746163
mov byte [rbp - 0x1c], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 0x23], WSAGetLastError
mov word [rbp - 0x33], 0x652e
mov word [rbp - 0x36], 0x6d6f
mov word [rbp - 0x39], 0x6863
mov byte [rbp - 0x34], 0x65
mov byte [rbp - 0x37], WSACleanup
mov word [rbp - 0x31], 0x6578
mov byte [rbp - 0x2f], dil
lea rax, [rbp - 0x59]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.140005a84
mov rbx, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x51]
call fcn.140005a84
nop
mov r9, rsi
mov r8, rbx
mov rdx, rax
call fcn.1400720bc
test al, al
jne 0x140071794
lea rax, [rbp - 0x59]
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.140005a84
mov rbx, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x49]
call fcn.140005a84
nop
mov r9, rsi
mov r8, rbx
mov rdx, rax
call fcn.140071e78
test al, al
je 0x1400717bc
lea r9, [rbp - 0x39]
mov r8, qword [rsi]
lea rdx, [0x140098b80]
mov rcx, rsi
call fcn.1400054dc
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
jne 0x1400717c8
mov rcx, rsi
call fcn.140071820
test al, al
je 0x1400717f5
call fcn.1400721cc
test eax, eax
je 0x1400717f0
mov dword [rbp - 0x59], edi
lea rdx, [rbp - 0x59]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x1400717f0
cmp dword [rbp - 0x59], 6
jne 0x1400717f0
mov edi, 1
mov byte [r14], dil
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140049680
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140071d18
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
mov rsi, rcx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
mov ebx, eax
call fcn.14004d2b0
lea rdx, [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140071db5
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x140071db5
lea rax, [rsp + 0x40]
lea edx, [rdi + 0x1c]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea r8, [rsp + 0x40]
lea rdx, [0x140098b74]
mov rcx, rsi
call fcn.1400054dc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
mov al, dil
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140049680
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140071de4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, rdx
mov rdi, rcx
and dword [rax - 0x18], 0
lea rcx, [0x1400a40e0]
mov rax, qword [0x1400a40e0]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x20], 1
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140071e60
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140071e60
mov rcx, rdi
call fcn.140004428
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret