joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400262d0
Capabilities:
Access peb ldr_data
Get process heap force flags
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13e0
call fcn.1402ccb60
sub rsp, rax
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor esi, esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], sil
lea rbx, [rcx + 0x20]
mov qword [rsp + 0x20], rbx
mov dword [rbx], esi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
lea ecx, [rsi + 0x30]
call fcn.1402cbf30
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x18]
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rbx + 0x30], 7
mov qword [rbx + 0x38], 8
mov dword [rbx], 0x3f800000
mov r8, qword [rbx + 8]
lea edx, [rsi + 0x10]
call fcn.140030d70
nop
lea rbx, [rdi + 0x60]
mov qword [rsp + 0x20], rbx
mov dword [rbx], esi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
lea ecx, [rsi + 0x38]
call fcn.1402cbf30
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x18]
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rbx + 0x30], 7
mov qword [rbx + 0x38], 8
mov dword [rbx], 0x3f800000
mov r8, qword [rbx + 8]
lea edx, [rsi + 0x10]
call fcn.140030d70
nop
xorps xmm0, xmm0
movups xmmword [rdi + 0xa0], xmm0
mov qword [rdi + 0xb0], rsi
mov qword [rdi + 0xb8], 7
mov word [rdi + 0xa0], si
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov eax, dword [rdx + 0x30]
add eax, 0x100000
mov dword [rdx + 0x40], eax
call fcn.140025b60
test al, al
jne 0x14002644b
call fcn.140025e60
test eax, eax
jne 0x14002644b
call fcn.140026060
test al, al
jne 0x14002644b
mov rax, rdi
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.1402cbf10
lea r11, [rsp + 0x13e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
nop
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140030660
lea rcx, [rsp + 0x38]
call fcn.140030640
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140030eb0
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140022c80
mov rcx, rax
call fcn.140022c90
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140030660
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
nop word [rax + rax]
mov eax, edx
lea r9, [r9 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9 - 4], edx
cmp r8, 0x270
jb 0x140030680
mov dword [rcx], 0x270
mov rax, rcx
ret
Function at 0x140032080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400320e1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400320a0
mov ecx, dword [r9]
jmp 0x1400321cb
cmp ecx, 0x4e0
jb 0x1400321cb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140032100
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140032150
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400394f0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
xor dil, dil
cmp qword [rdx + 0x10], 0
je 0x14003959b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test al, al
jne 0x14003959b
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14003ac90
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140039554
mov dil, 1
jmp 0x140039591
lea rdx, str.Error_creating_directory
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400063d0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140039575
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14004c1d0
lea rdx, [0x1400065a0]
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]
nop
lea rcx, [rsp + 0x20]
call fcn.140021ea0
movzx eax, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402cbf10
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140048bd0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
movzx r8d, byte [rdx]
mov r9, rcx
movabs rcx, 0x100000001b3
mov r10, rdx
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rdx + 1]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
mov rdx, qword [r9 + 0x30]
imul r8, rcx
xor r8, rax
imul r8, rcx
and rdx, r8
shl rdx, 4
add rdx, qword [r9 + 0x18]
mov rax, qword [rdx + 8]
cmp rax, qword [r9 + 8]
je 0x140048c57
mov ecx, dword [r10]
mov rdx, qword [rdx]
cmp ecx, dword [rax + 0x10]
je 0x140048c4e
nop
cmp rax, rdx
je 0x140048c57
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x140048c40
add rax, 0x18
add rsp, 0x28
ret
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
Function at 0x140048fb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x30], rdx
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140048fe4
mov rdx, qword [rdx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r8, r8
je 0x140049013
movabs r10, 0x100000001b3
nop
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140049000
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.1400252c0
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14004903e
cmp rcx, qword [rbp + 8]
je 0x14004903e
mov rcx, rdi
call fcn.1400062c0
xor al, al
jmp 0x140049097
mov rbx, qword [rbp + 0x48]
sub rbx, qword [rbp + 0x40]
sar rbx, 5
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.14004b770
mov rcx, qword [rax]
mov qword [rcx + 0x30], rbx
mov rax, qword [rbp + 0x48]
cmp rax, qword [rbp + 0x50]
je 0x14004907d
mov rdx, rdi
mov rcx, rax
call fcn.140021190
add qword [rbp + 0x48], 0x20
jmp 0x14004908d
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.14004e730
nop
mov rcx, rdi
call fcn.1400062c0
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402cbf10
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140049210
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140049244
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140049230
ret
Function at 0x14004bf90
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14004bfc5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140030d70
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14004c106
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14004c080
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14004c0f5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14004c0bd
mov r10, qword [rdx]
cmp r10, rax
je 0x14004c0b7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14004c0f5
cmp r9, rdx
je 0x14004c0d1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14004c117
cmp r9, rdx
jne 0x14004c0c2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14004c030
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14004c0f5
Function at 0x140059ac0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140059b8c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140059b8c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140059ba5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140059b7c
cmp byte [rax], 0x5c
jne 0x140059b76
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140059b76
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140059b62
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140059b73
test r8b, 0x10
jne 0x140059b76
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140059b76
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140053940
test edi, edi
jne 0x140059ae0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140053930
int3
Function at 0x14005f3a0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r8
xor esi, esi
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xorps xmm0, xmm0
test eax, eax
jne 0x14005f43c
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
movdqu xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], 6
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14005f423
mov rcx, qword [rdi]
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14005f456
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov r8d, 7
lea rdx, str.0.0.0.0
jmp 0x14005f4d2
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14005f495
mov ecx, dword [rdx + 4]
mov rdx, qword [rdx + 0x20]
cmp ecx, 2
jne 0x14005f472
add rdx, 4
jmp 0x14005f476
add rdx, 8
mov r9d, 0x41
lea r8, [rsp + 0x210]
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea rax, [rsp + 0x210]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14005f4c0
lea rdx, [rsp + 0x210]
mov rcx, rbx
call fcn.140006600
nop
mov rcx, rdi
call fcn.1400062c0
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402cbf10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14005f510
Capabilities:
Capture public ip
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov qword [rsp + 0x38], rdx
xor ebp, ebp
xor edx, edx
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x28], rbp
lea rdx, str.https:__api.ipify.org
mov rcx, rax
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rcx, rax
lea r9, [rsp + 0x38]
lea r8d, [rbp + 0x2f]
mov rsi, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x38]
cmp rax, 0x2f
jae 0x14005f60f
mov rcx, rsi
mov byte [rsp + rax + 0x40], bpl
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rbp
nop
inc r8
cmp byte [rax + r8], bpl
jne 0x14005f5d0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140006600
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1402cbf10
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1402cc5cc
int3
Function at 0x140063c60
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rdx
mov qword [rsp + 0x78], rdx
xor edi, edi
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x140063c96
mov rcx, qword [rdx]
mov qword [rsp + 0x20], 4
lea r9, str.dhcp
xor r8d, r8d
mov rdx, qword [rdx + 0x10]
call fcn.140023720
lea rcx, [0x14053f56e]
lea rdx, str.static_address
cmp rax, 0xffffffffffffffff
cmovne rdx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140063ce0
lea rcx, [rsp + 0x58]
call fcn.140006600
nop
mov r9d, Ordinal_143
lea r8, str._C_for__F__tokens3___i_in__netsh_interface_show_interface__find__Connected___do_netsh_interface_ipv4_set_dnsservers_name__j__source
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140024690
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140063d4c
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x38]
call fcn.140022150
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x90], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x90], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rsp + 0x38]
call fcn.1400062c0
nop
lea rcx, [rsp + 0x58]
call fcn.1400062c0
lea r9, [rsp + 0x80]
cmp qword [rsp + 0x98], 0xf
cmova r9, qword [rsp + 0x80]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
lea r8, [0x14056746c]
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rsp + 0x80]
call fcn.1400062c0
nop
mov rcx, rbx
call fcn.1400062c0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1402cbf10
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
Function at 0x14006e940
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rdx, qword [rcx + 0x10]
lea rax, [0x14053eb28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x78], xmm0
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
mov dword [rsp + reloc.WS2_32.dll_WSASetLastError], 0x70
mov dword [rsp + 0x74], 0x40
mov qword [r11 - 0x78], rax
lea rax, str.cmd.exe
mov qword [r11 - 0x70], rax
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, 3
jb 0x14006ea9d
cmp qword [rcx + 0x18], 0xf
mov rax, rcx
jbe 0x14006e9d0
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdx
lea r9, [0x14053eb38]
movzx edx, byte [rsp + 0x40]
mov r8, rcx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], 3
call fcn.140006740
cmp qword [rsp + 0x60], 0xf
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x48]
cmova rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
call fcn.1400062c0
lea rcx, [rsp + 0x70]
mov dword [rsp + 0xa0], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x14006ea64
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_executing_command_n
call fcn.1400063d0
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1402cbf10
add rsp, 0xf8
ret
mov rcx, qword [rsp + 0xd8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1402cbf10
add rsp, 0xf8
ret
call fcn.140005690
int3
Function at 0x140070530
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1160
call fcn.1402ccb60
sub rsp, rax
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rsp + 0x1150], rax
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.MyApp
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
je 0x1400705c5
cmp qword [rbx + 0x18], 0xf
jbe 0x140070591
mov rbx, qword [rbx]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x1400705cc
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140070702
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.14007fa40
nop
mov rcx, rbx
cmp qword [rsp + 0xc8], 0
jne 0x140070616
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x1400706b2
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x150]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140070671
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140070671
mov r8d, eax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x40]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x150]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140070633
lea rcx, [rsp + 0x48]
call fcn.140021ca0
test rax, rax
jne 0x14007069e
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x40], rax
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rsp + rdx + 0x3c], r8d
lea rcx, [rsp + 0x48]
call fcn.14001ffe0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, bl
mov rcx, qword [rsp + 0x1150]
xor rcx, rsp
call fcn.1402cbf10
lea r11, [rsp + 0x1160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret