joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049480
Capabilities:
Encode data using xor

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
xor r15d, r15d
lea r12, [0x140000000]
movzx eax, byte [r15 + r12 + 0x5fea0]
mov edi, eax
mov r8d, eax
shr edi, 5
mov r11d, eax
shr r8d, 6
mov ebp, edi
lea edx, [rax + rax]
shr r11d, 7
xor edx, eax
and ebp, 4
mov r10d, edi
mov r9d, r8d
and edi, 1
and r10d, 2
imul ecx, edi, 0x1b000000
and r8d, 1
lea ebx, [rdx + rdx]
and r9d, 2
lea edx, [rdx*4]
xor ebx, eax
xor edx, eax
shl ebx, 0x19
shl edx, 8
mov esi, eax
xor rbx, rcx
mov r14d, eax
imul ecx, r10d, 0x1b000000
xor rbx, rcx
imul ecx, r8d, 0x1b000000
xor rbx, rcx
imul ecx, r9d, 0x1b000000
xor rbx, rcx
imul ecx, ebp, 0x1b000000
xor rbx, rcx
imul ecx, r11d, 0x1b000000
xor rbx, rcx
imul ecx, edi, 0x11b00
xor rdx, rcx
imul ecx, r10d, 0x11b00
xor rdx, rcx
imul ecx, r8d, 0x11b00
xor rdx, rcx
imul ecx, r9d, 0x11b00
xor rdx, rcx
imul ecx, ebp, 0x11b00
xor rdx, rcx
imul ecx, edi, 0x11b0000
or rbx, rdx
lea edx, [rax*8]
xor edx, eax
lea eax, [rax*4]
shl edx, 0x10
xor eax, r14d
xor rdx, rcx
imul ecx, r10d, 0x11b0000
xor rdx, rcx
imul ecx, ebp, 0x11b0000
xor rdx, rcx
imul ecx, edi, 0x11b
or rbx, rdx
lea edx, [rax + rax]
xor rdx, rcx
imul ecx, r10d, 0x11b
xor rdx, rcx
imul ecx, ebp, 0x11b
xor rdx, rcx
imul ecx, r11d, 0x11b
xor rdx, rcx
xor rdx, rsi
or rdx, rbx
shl rdx, 0x20
or rdx, rbx
or rdx, rsi
mov qword [r12 + r15*8 + 0x79780], rdx
inc r15
cmp r15, 0x100
jl 0x1400494a3
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov byte [0x140079f81], 1
pop r15
pop r14
pop r12
ret

Function at 0x14004960c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
lea rbx, [0x140000000]
movzx r9d, byte [r11 + rbx + 0x5fda0]
mov edx, r9d
shr edx, 7
imul r10d, edx, 0x1b000000
lea r8d, [r9 + r9]
imul ecx, edx, 0x11b
mov eax, r8d
shl eax, 0x18
xor r10, rax
mov eax, r9d
shl eax, 8
or eax, r9d
shl eax, 8
or r10, rax
mov eax, r8d
xor rcx, rax
xor rcx, r9
or rcx, r10
shl rcx, 0x20
or rcx, r10
mov qword [rbx + r11*8 + 0x78f70], rcx
inc r11
cmp r11, 0x100
jl 0x14004961b
and qword [0x140079778], 0
and qword [0x140079770], 0
mov rbx, qword [rsp + 8]
mov byte [0x140079f80], 1
ret
Function at 0x14004b0d0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140073180]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x14007a080]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140079f90], ecx
jg 0x14004b1b2
mov eax, ebx
cmp rbx, rax
jne 0x14004b174
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x14004b174
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x140079f88]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14004b1f5
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140052e60
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.1400040a0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004ae00
lea rdx, [0x140070168]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x140079f90]
call fcn.14005351c
cmp dword [0x140079f90], 0xffffffff
jne 0x14004b11c
lea rcx, [0x140079f88]
call fcn.14004ad14
lea rcx, [0x140056a3c]
call fcn.140053118
nop
lea rcx, [0x140079f90]
call fcn.1400534b0
jmp 0x14004b11c
mov ecx, eax
call fcn.14004b238
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14005e918]
lea rcx, [rsp + 0x20]
call fcn.1400040a0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004ae00
lea rdx, [0x140070168]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14004c63c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x14004c6af
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x14004c66e
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x14004c6f1
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x14004c6dd
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14004c70c
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x14004c7d2
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x14004c79d
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x14004c752
test rbx, rbx
je 0x14004c7ba
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x14004c7a8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14004c7d4
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14004c881
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x14004c859
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x14004c811
test rbx, rbx
je 0x14004c86f
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x14004c861
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400527a4
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x1400527f3
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x1400527ca
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x140053c34
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
xor ecx, ecx
mov rbx, r8
mov edi, edx
test r8, r8
je 0x14000779c
mov dword [r8], ecx
lea eax, [rdx - 0xc000]
cmp eax, 0x3fff
ja 0x14000787b
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, str.Link_Source
lea rcx, [rsp + 0x20]
call fcn.1400c0410
test eax, eax
je 0x140007868
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x20]
call fcn.1400c0224
test eax, eax
je 0x140007868
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x20]
call fcn.1400c0224
test eax, eax
je 0x140007868
lea rdx, str.Native
lea rcx, [rsp + 0x20]
call fcn.1400c0224
test eax, eax
je 0x140007868
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x20]
call fcn.1400c0224
test eax, eax
je 0x140007868
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x20]
call fcn.1400c0224
test eax, eax
je 0x14000785d
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x20]
call fcn.1400c0224
test eax, eax
jne 0x140007880
test rbx, rbx
je 0x140007868
mov dword [rbx], 1
xor eax, eax
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
mov word [rsp + 0x20], cx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret

Function at 0x1400078a0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
sub rsp, 0x28
cmp dword [0x140127e8c], 0
je 0x1400078b7
mov eax, 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140125b28]
mov ebx, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140007934
xor edi, edi
nop dword [rax]
mov ecx, dword [0x14011f19c]
cmp ecx, 0xffffffff
je 0x140007904
test ecx, ecx
je 0x140007952
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x14011f19c]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x140007952
mov edx, 1
mov dword [0x14011f180], edi
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, qword [0x140125b28]
mov dword [0x14011f180], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400078e0
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rdi, qword [rsp + 0x20]
mov dword [0x140127e8c], 1
add rsp, 0x28
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140007ea4
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov word [rax + 0x20], r9w
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x840
mov r13, rcx
xor edi, edi
mov r14d, 0x400
mov byte [rsp + 0x20], dil
mov r8d, r14d
lea rcx, [rsp + 0x21]
xor edx, edx
mov ebp, edi
call fcn.1400bc660
mov r8d, r14d
mov byte [rsp + 0x430], dil
xor edx, edx
lea rcx, [rsp + 0x431]
call fcn.1400bc660
mov r9d, r14d
lea edx, [r14 + 1]
mov r8, r13
lea rcx, [rsp + 0x20]
lea r12, [rsp + 0x20]
lea rbx, [rsp + 0x430]
call fcn.1400c5ba0
mov r14, qword [rsp + 0x8a8]
mov rcx, r13
mov qword [r14], rdi
mov r15, r14
mov byte [rbx], dil
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov rdi, rax
test rax, rax
je 0x140008043
cmp word [rax + 0x10], 2
jne 0x140007f9a
cmp word [rax + 0x12], 4
jne 0x140007f9a
mov rsi, qword [rax + 0x18]
jmp 0x140007f92
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x898]
mov edx, dword [rsp + 0x890]
mov ecx, dword [rsp + 0x888]
call fcn.140007e04
mov qword [r15], rax
test rax, rax
je 0x14000803c
lea r15, [rax + 0x28]
add rsi, 8
mov rax, qword [rsi]
test rax, rax
jne 0x140007f5f
mov r8, qword [rdi]
mov r9d, 0x400
mov rcx, rbx
lea edx, [r9 + 1]
call fcn.1400c5ba0
xor edi, edi
cmp qword [r14], rdi
jne 0x140007fef
mov rcx, rbx
call fcn.1400c5a90
test rax, rax
je 0x14000805c
mov rdx, rbx
mov rcx, r12
call fcn.1400c5ca0
test eax, eax
je 0x14000805c
inc ebp
cmp ebp, 0x10
je 0x14000805c
mov rax, r12
mov r12, rbx
mov rbx, rax
jmp 0x140007f2d
mov ecx, edi
cmp dword [rsp + 0x8a0], edi
je 0x140008068
mov rcx, rbx
call fcn.1400c5a90
mov ecx, 1
mov rsi, rax
lea rdx, [rax + 1]
call fcn.1400c5b38
mov rdi, rax
test rax, rax
je 0x14000802a
mov r8, rbx
lea rdx, [rsi + 1]
mov rcx, rax
call fcn.1400c5b40
mov rax, qword [r14]
xor ecx, ecx
mov qword [rax + 0x18], rdi
mov rax, qword [r14]
cmp qword [rax + 0x18], rcx
jne 0x140008068
mov ecx, 8
jmp 0x140008068
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x140008068
sub eax, 1
je 0x140008063
sub eax, 1
jne 0x140008068
mov ecx, 0x2afb
jmp 0x140008068
mov ecx, 0x2afa
mov rbx, qword [rsp + 0x880]
mov eax, ecx
add rsp, 0x840
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400086bc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x270
lea rax, [0x1400080d8]
movzx r12d, cx
mov qword [rsp + 0x28], rax
lea r14, str.getaddrinfo
lea rax, str.getnameinfo
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], rax
xor ebx, ebx
cmp dword [0x140125ac8], ebx
lea rax, [0x14000849c]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x140008088]
mov qword [rsp + 0x48], rax
je 0x140008744
lea rsi, str.getaddrinfo
jmp 0x14000885b
mov edx, 0x104
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rsi, str.getaddrinfo
test eax, eax
je 0x140008851
mov r15d, 0x10c
lea r8, [rbp + 0x60]
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400c5b40
lea r8, str.ws2_32
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400c6df0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x1400087ba
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140008803
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rbp + 0x60]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400c5b40
lea r8, str.wship6
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400c6df0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140008851
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008848
mov r15d, ebx
lea r14, [rsp + 0x28]
mov rdx, qword [r14 - 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r14], rax
test rax, rax
je 0x140008848
inc r15d
add r14, 0x10
cmp r15d, 3
jl 0x14000880b
test rdi, rdi
je 0x140008851
mov rax, qword [rsp + rbx + 0x28]
mov qword [rbx + rsi + 8], rax
add rbx, 0x10
cmp rbx, 0x30
jl 0x140008832
jmp 0x140008851
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x140125ac8], 1
lea r11, [rsp + 0x270]
mov rax, r12
mov rbx, qword [r11 + 0x20]
add rax, rax
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rax, qword [rsi + rax*8 + 8]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140008964
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x20
mov qword [0x140121a78], rdx
mov r8, rdx
mov r10, qword [rdx + 0x38]
mov r9d, 1
test r10, r10
je 0x140008a0d
cmp byte [r10 + 5], r9b
jne 0x140008a0d
cmp byte [r10 + 6], 0
je 0x1400089f5
mov rcx, qword [rdx + 0x18]
jmp 0x1400089b9
mov eax, dword [r8 + 4]
cmp dword [rcx + 4], eax
jne 0x1400089be
movzx eax, word [r8 + 2]
cmp word [rcx + 2], ax
jne 0x1400089be
mov r8, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x14000899e
mov eax, dword [r8 + 4]
movzx ecx, word [r8 + 2]
cmp byte [r8], 3
je 0x1400089d2
and qword [r8 + 0x38], 0
mov r8, qword [r8 + 0x20]
test r8, r8
je 0x1400089e8
cmp dword [r8 + 4], eax
jne 0x1400089e8
cmp word [r8 + 2], cx
je 0x1400089c7
mov edx, 8
mov rcx, r10
call fcn.1400b9b7c
lea rdx, [0x1400fbf5c]
lea rcx, [0x140121a50]
add rsp, 0x20
pop rbp
jmp fcn.140008b94
mov r10d, dword [0x140121ad0]
cmp r10d, 3
je 0x140008a88
mov r11, qword [0x140121a58]
movabs rbp, 0x2aaaaaaaaaaaaaab
cmp r10d, 4
jne 0x140008a5b
mov rcx, r11
mov rax, rbp
sub rcx, qword [0x140121a50]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
cmp edx, dword [0x140121adc]
jle 0x140008a88
cmp r10d, 5
jne 0x140008ab9
sub r11, qword [0x140121a50]
mov rax, rbp
add r11, 0x18
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x140121adc]
jge 0x140008ab9
mov al, byte [r8]
cmp al, 0x16
jb 0x140008a97
cmp al, 0x18
jbe 0x140008aa9
cmp al, 0x1b
jmp 0x140008aa4
cmp al, 3
je 0x140008aa9
cmp al, 4
jne 0x140008aa6
cmp qword [r8 + 0x10], 0
je 0x140008aa9
xor r9d, r9d
test r9b, r9b
jne 0x140008ab9
cmp dword [r8 + 4], 0
jne 0x1400089f5
mov rcx, qword [0x140121a70]
lea r8, [rsp + 0x30]
mov edx, 0x4004667f
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
jne 0x140008ae6
cmp dword [rsp + 0x30], eax
seta al
test al, al
je 0x140008ae6
xor edx, edx
jmp 0x1400089fc
xor eax, eax
add rsp, 0x20
pop rbp
ret
Function at 0x14000c8e0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rdx, rdx
jne 0x14000c933
mov edx, dword [rcx + 0x80]
sub edx, 1
je 0x14000c92c
sub edx, 2
je 0x14000c923
sub edx, 1
je 0x14000c91a
cmp edx, 1
je 0x14000c911
lea rdx, [0x1400fc00e]
jmp 0x14000c933
lea rdx, str.step_out
jmp 0x14000c933
lea rdx, str.step_over
jmp 0x14000c933
lea rdx, str.step_into
jmp 0x14000c933
lea rdx, [0x1400fdf44]
mov rcx, qword [rcx + 0x98]
lea rax, [0x1400fc00e]
test rcx, rcx
je 0x14000c94e
cmp qword [rcx], 0
cmovne rax, qword [rcx]
mov qword [rsp + 0x28], rax
lea rcx, [rbx + 0x60]
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, rdx
lea rdx, str._response_command__s__status__s__reason__s__transaction_id__e___
call fcn.14000d38c
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.14000c97c

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x70]
mov r8d, 0xa
add rcx, 0x26
call fcn.1400c5940
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400bbfd0
lea r8, str.__xml_version_1.0__encoding_UTF_8___
lea rdx, [0x1400fed10]
lea rbx, [rax + 1]
mov rcx, rbx
call fcn.14000e7ac
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x20]
movsxd r8, eax
xor r9d, r9d
add r8, rbx
lea rax, [rsp + 0x20]
sub r8d, eax
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000ca2d
mov r8d, 1
lea rdx, [0x1400fbbd0]
lea rcx, [rdi + 0x60]
call fcn.14000d314
test eax, eax
jne 0x14000ca2d
mov r8d, dword [rdi + 0x70]
xor r9d, r9d
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000ca2d
and qword [rdi + 0x70], 0
and dword [rdi + 0x78], 0
xor eax, eax
jmp 0x14000ca39
lea rcx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.14000cf74
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000cfc8
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
cmp r8, 0xffffffffffffffff
jne 0x14000cff0
mov rcx, rdx
call fcn.1400c5a90
mov r8, rax
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, 2
jbe 0x14000d08f
lea rcx, [r8 - 3]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
lea r9, [rdi + 2]
shr rdx, 1
inc rdx
imul rax, rdx, 0xfffffffffffffffd
lea rbx, [rdx*4]
add r8, rax
movzx eax, byte [rsi + 1]
movzx ecx, byte [rsi]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 2]
shl rcx, 8
add rsi, 3
or rcx, rax
mov rax, rcx
shr rax, 0x12
mov al, byte [rax + r10]
mov byte [r9 - 2], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [r9 - 1], al
mov rax, rcx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [r9], al
lea r9, [r9 + 4]
mov al, byte [rcx + r10]
mov byte [r9 - 3], al
sub rdx, 1
jne 0x14000d02b
test r8, r8
je 0x14000d0ee
movzx ecx, byte [rsi]
shl rcx, 0x10
cmp r8, 1
jbe 0x14000d0ac
movzx eax, byte [rsi + 1]
shl rax, 8
or rcx, rax
mov rax, rcx
shr rax, 0x12
mov al, byte [rax + r10]
mov byte [rbx + rdi], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [rbx + rdi + 1], al
cmp r8, 1
jbe 0x14000d0df
shr rcx, 6
and ecx, 0x3f
mov al, byte [rcx + r10]
jmp 0x14000d0e1
mov al, 0x3d
mov byte [rbx + rdi + 2], al
mov byte [rbx + rdi + 3], 0x3d
add rbx, 4
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov byte [rbx + rdi], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e564
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov rcx, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x14000e5c7
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000e5fa
mov eax, dword [rdi + 0x20]
sub eax, 1
mov dword [rdi + 0x20], eax
jne 0x14000e5bc
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e5af
call fcn.1400c03a0
mov edx, 0x28
mov rcx, rdi
call fcn.1400b9b7c
and qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
jmp 0x14000e5fa
xor edx, edx
mov rcx, rbx
call fcn.14000e9c0
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000e804
mov rax, qword [rbx + 8]
mov r8d, edi
mov rcx, rsi
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret