joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a7414
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a749b
mov rsi, rbx
cmp word [rax], bp
je 0x1400a745a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a7444
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a7440
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009cc98
mov rdi, rax
test rax, rax
je 0x1400a7488
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140087350
mov rbp, rdi
xor ecx, ecx
call fcn.14009ca58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ab700
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400a1528
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a1528
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ab850
cmp rax, 0xffffffffffffffff
je 0x1400ab850
xor edi, edi
test rbp, rbp
jle 0x1400ab7fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009e224
mov rbx, rax
test rax, rax
jne 0x1400ab788
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ab7f1
mov edx, 0x8000
mov ecx, r14d
call fcn.14009bb4c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14009fc78
cmp eax, 0xffffffff
je 0x1400ab7d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ab798
mov edx, r15d
mov ecx, r14d
call fcn.14009bb4c
jmp 0x1400ab7f1
cmp byte [rsi + 0x38], dil
je 0x1400ab7e8
cmp dword [rsi + 0x34], 5
jne 0x1400ab7e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400ab7f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009ca58
jmp 0x1400ab864
jns 0x1400ab864
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a1528
cmp rax, 0xffffffffffffffff
jne 0x1400ab81c
cmp byte [rsi + 0x30], dil
je 0x1400ab864
mov edi, dword [rsi + 0x2c]
jmp 0x1400ab864
mov ecx, r14d
call fcn.1400a7a60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ab864
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400ab864
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ab85d
mov eax, dword [rsi + 0x2c]
jmp 0x1400ab862
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a1528
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400abfe0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ac008
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ac008
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1408b80b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408b8237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408b80e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408b80c7
add dl, dl
jne 0x1408b80ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408b814e
xor eax, eax
add dl, dl
jne 0x1408b80fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408b8205
add dl, dl
jne 0x1408b810e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408b811b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408b8128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408b8135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408b8142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408b80d6
mov eax, 1
add dl, dl
jne 0x1408b815e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408b816b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408b8153
sub eax, ebx
mov ebx, 1
jne 0x1408b81a4
mov ecx, 1
add dl, dl
jne 0x1408b8186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408b8193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408b817b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408b80d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408b81c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408b81cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408b81b5
cmp eax, 0x7d00
jae 0x1408b81f3
cmp eax, 0x500
jb 0x1408b81ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408b80d6
cmp eax, 0x7f
ja 0x1408b81f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408b80d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408b822a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408b80d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001f32
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140001f51
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000bce8
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140004c0d
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [fcn.14000b720]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x14000bce8

Function at 0x140004c4c
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1400110f0], 0
jne 0x140004c64
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004c0d
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140004bab
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1400110f0]
test rbx, rbx
je 0x140004c95
test byte [rbx + 7], 0x40
jne 0x140004c95
mov rcx, rbx
call fcn.140002f93
lea rcx, [0x14000c220]
call fcn.140006500
cmp byte [rax], 0
je 0x140004ccd
mov byte [rax], 0
lea rcx, [0x14000c120]
call fcn.140006500
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400034ff
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x1400055d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000b720
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000b720
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140005640
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400111c4]
mov rbx, rcx
test esi, esi
jle 0x140005770
mov rax, qword [0x1400111c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000568b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140005715
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140005670
mov rcx, rbx
call fcn.140006090
mov rdi, rax
test rax, rax
je 0x140005792
mov rax, qword [0x1400111c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400061d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400111c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140005777
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000570e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005720
add dword [0x1400111c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400111c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000570e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400055d0
nop dword [rax]
xor esi, esi
jmp 0x140005698
mov rax, qword [0x1400111c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400055d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400055d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140005d00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140011220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011200]
test rbx, rbx
je 0x140005d5c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140005d53
test rsi, rsi
je 0x140005d53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005d38
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140006090
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000dfa0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400060b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400060b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400060b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000610d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140006104
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400060b0
add rax, 0x28
cmp rax, r9
jne 0x1400060f0
xor eax, eax
ret

Function at 0x140006110
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000dfa0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000612f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140006138
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000612f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400061d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000dfa0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400061ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400061f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400064a0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400112a0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400112a8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400064f0
lea rdx, [0x1400063b0]
mov ecx, eax
mov dword [0x140011298], eax
call fcn.14000be40
test eax, eax
jne 0x1400064f8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400064e7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140006500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14000df30]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140006538
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400065a0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x1400065b0
mov esi, dword [0x140011298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140006620
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140006668
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140006527
mov rcx, rbx
call fcn.140006400
mov qword [rsi + r12*8 + 8], rax
jmp 0x140006527
call fcn.140006400
mov qword [rbx + 0x10], rax
jmp 0x140006527
mov r10d, dword [rsi]
test r10d, r10d
je 0x1400066ca
mov r9d, dword [0x14000c2f0]
test r9d, r9d
je 0x1400066f8
lock add dword [0x1400112a0], 1
jne 0x14000672c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x1400066d7
mov eax, dword [rsi]
test eax, eax
je 0x140006541
lock sub dword [0x1400112a0], 1
js 0x140006541
mov rcx, qword [0x1400112a8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140006541
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x140006753
mov qword [rax], rdi
mov ecx, dword [0x140011298]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000657b
call r13
jmp 0x14000657b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x140006753
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140006643
call fcn.1400064a0
mov dword [0x14000c2f0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x1400065cc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140006541
mov rax, qword [0x140011290]
lea r12, [rax + 1]
mov qword [0x140011290], r12
mov qword [rbx + 0x10], r12
jmp 0x1400065e7
lock add dword [0x14000c2f4], 1
je 0x1400066b1
mov r8d, dword [0x14000c2f0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x14000c2f0]
test r8d, r8d
jne 0x1400066c0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140006720
jmp 0x1400066c0
mov rcx, qword [0x1400112a8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400065da
lock sub dword [0x1400112a0], 1
jmp 0x1400065da
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140006770
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14000677a
mov qword [rcx + 8], r8
test r9, r9
je 0x140006784
cmp qword [rcx], rdx
je 0x140006788
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140001100
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x1400027f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r9, qword [0x14000b6f0]
mov rbx, rcx
mov rdx, r9
mov rcx, qword [r9 + 8]
mov rax, rcx
cmp byte [rcx + 0x19], 0
jne 0x14000285b
mov r8, qword [rax + 0x20]
cmp r8, rbx
jae 0x140002842
mov rax, qword [rax + 0x10]
jmp 0x140002855
cmp byte [rdx + 0x19], 0
je 0x14000284f
cmp rbx, r8
cmovb rdx, rax
mov r9, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140002833
cmp byte [rdx + 0x19], 0
jne 0x140002864
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x140002888
nop word [rax + rax]
cmp rbx, qword [rcx + 0x20]
jae 0x14000287e
mov rdx, rcx
mov rcx, qword [rcx]
jmp 0x140002882
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x140002870
mov qword [rbp - 1], rdx
lea rdx, [rbp - 0x19]
mov qword [rbp - 9], r9
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x19], xmm0
call fcn.140002c40
lea rax, [rbp + 0x17]
mov dword [rbp + 0x17], 1
mov qword [rbp + 0x37], rax
lea rdx, [rbp - 9]
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x33], 2
xor edi, edi
mov qword [rbp - 1], rax
lea rcx, [rbx + 0x18]
mov dword [rbp + 0x2f], 4
mov dword [rbp - 9], edi
mov dword [rbp - 5], 1
call qword [sym.imp.Secur32.dll_ApplyControlToken]
cmp byte [0x14000b6e0], dil
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x58], rdi
lea rdx, [rbx + 0x18]
mov qword [rbp + 0xf], rax
lea rcx, [rbx + 8]
mov eax, 0x8819c
mov dword [rbp + 0x23], 2
mov r9d, 0x819c
mov dword [rbp + 7], edi
cmovne r9d, eax
mov dword [rbp + 0xb], 1
lea rax, [rbp + 0x1b]
mov dword [rbp + 0x1b], r9d
mov qword [rsp + 0x50], rax
xor r8d, r8d
lea rax, [rbp + 7]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.Secur32.dll_InitializeSecurityContextW]
test eax, eax
jne 0x1400029a5
mov rdi, qword [rbp + 0x27]
mov qword [rsp + 0xe8], rsi
mov esi, dword [rbp + 0x1f]
test esi, esi
je 0x140002994
nop dword [rax]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x140002990
movsxd rcx, eax
add rdi, rcx
sub esi, eax
jne 0x140002970
mov rdi, qword [rbp + 0x27]
mov rcx, rdi
call qword [sym.imp.Secur32.dll_FreeContextBuffer]
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rbx]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
lea rcx, [rbx + 0x18]
call qword [sym.imp.Secur32.dll_DeleteSecurityContext]
lea rcx, [rbx + 8]
call qword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140003610
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002a00
Capabilities:
Decrypt data via sspi
Receive data
Receive data on socket

Disassembly:
mov r11, rsp
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, qword [0x14000b6e8]
xor r12d, r12d
mov qword [r11 + 8], rbp
mov esi, r12d
mov r15, rdx
mov qword [r11 + 0x18], rdi
mov r14d, 0x4000
nop
mov rdx, qword [rbx + 0x8448]
test rdx, rdx
je 0x140002ae3
mov eax, dword [rbx + 0x4244]
mov edi, r14d
cmp r14d, eax
mov rcx, r15
cmovge edi, eax
movsxd rbp, edi
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbx + 0x4244]
add r15, rbp
sub r14d, edi
add esi, edi
cmp edi, eax
jne 0x140002acf
movsxd rcx, dword [rbx + 0x4240]
mov eax, dword [rbx + 0x423c]
sub eax, ecx
movsxd r8, eax
lea rdx, [rcx + 0x4248]
add rdx, rbx
lea rcx, [rbx + 0x4248]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [rbx + 0x4240]
sub dword [rbx + 0x423c], eax
mov eax, r12d
mov dword [rbx + 0x4240], r12d
mov qword [rbx + 0x8448], r12
mov dword [rbx + 0x4244], eax
jmp 0x140002bed
add qword [rbx + 0x8448], rbp
sub eax, edi
mov dword [rbx + 0x4244], eax
jmp 0x140002bed
mov ecx, dword [rbx + 0x423c]
test ecx, ecx
je 0x140002ba0
lea rax, [rbx + 0x4248]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], rax
lea rcx, [rbx + 0x18]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x48], r12
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x24], 4
call qword [sym.imp.Secur32.dll_DecryptMessage]
test eax, eax
jne 0x140002b8a
mov rax, qword [rsp + 0x48]
mov ecx, r12d
cmp dword [rsp + 0x64], 5
mov qword [rbx + 0x8448], rax
mov eax, dword [rsp + 0x40]
cmove ecx, dword [rsp + 0x60]
mov dword [rbx + 0x4244], eax
mov eax, dword [rbx + 0x423c]
sub eax, ecx
mov dword [rbx + 0x4240], eax
jmp 0x140002bed
cmp eax, 0x90317
je 0x140002c25
cmp eax, 0x80090318
jne 0x140002c39
test esi, esi
jne 0x140002bf6
movsxd rax, dword [rbx + 0x423c]
cmp eax, 0x4200
je 0x140002c39
mov rcx, qword [rbx]
lea rdx, [rax + 0x4248]
mov r8d, 0x4200
add rdx, rbx
sub r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140002c39
test edi, edi
je 0x140002c35
js 0x140002c2e
add dword [rbx + 0x423c], edi
test r14d, r14d
jne 0x140002a40
mov eax, esi
mov rdi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003610
add rsp, 0x80
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
mov dword [rbx + 0x423c], r12d
jmp 0x140002bf6
mov esi, 0xffffffff
jmp 0x140002bf6
xor eax, eax
jmp 0x140002bf8
mov eax, 0xffffffff
jmp 0x140002bf8
Function at 0x140003fd0
Capabilities:
Parse pe header

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

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

Disassembly:
sub rsp, 0x28
lea rcx, str.powershell__Command___myString__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
test eax, eax
je 0x140001031
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001040
mov rcx, rax
lea rdx, [0x140001200]
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]
xor eax, eax
add rsp, 0x28
ret
Function at 0x1410c4e00
Capabilities:
Encode data using xor

Disassembly:
movsx r15w, r15b
add r15d, 0x78ef339d
add edi, 0x78ef339d
out dx, eax
js 0x1410c4e59
mov r15, qword [rsp + 0x10]
mov edi, dword [rsp + 0x10]
mov qword [rsp + 0x10], 0x60c478df
push rdx
movabs rdx, 0x3d4c47771060125d
seto dl
bswap rdx
cmp rax, 0x48c2900f
bswap edx
not dx
bswap rdx
xor dx, 0x4841
mov rdx, qword [rsp]
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x18]
call fcn.141233ece
jbe 0x1410c4eaf
nop
cli
sbb dword [rax - 0x27], 0x56
mov edx, 0x5284951b
mov edx, 0xaa70ad96
lodsd eax, dword [rsi]
jo 0x1410c4e06
jne 0x1410c4e23
jrcxz 0x1410c4e0a
jns 0x1410c4e73
and byte [rcx - 0x46], dl
adc dword [rsi - 0x65], 0x8aabba52
xchg ebp, eax
push rbp
mov edx, 0x51a87354
test al, 0x51
push rcx
mov edx, 0xa300e9d1
jmp 0x1410c4e74
shl dword [rbx - 0x2040b513], cl
invalid