joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014c88
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014c9e
mov al, 1
jmp 0x140014cfe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014caf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014cfc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001109c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014cfc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014cfc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014cfc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014cfe
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140014efc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140026590]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140014f53
cmp word [rdx], r13w
jne 0x140014f53
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140014f58
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001507d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001509e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014f91
mov rdx, r9
mov word [rbx], cx
jmp 0x140014fb8
cmp r9, r8
jae 0x140014fc8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140014f72
jmp 0x14001507d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015072
cmp dword [rsp + 0x80], esi
je 0x140015072
lea r8, [0x140026590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001504a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001501a
mov word [rbx], r13w
jmp 0x14001507a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140015027
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001507a
cmp word [rsp + 0x70], r13w
jne 0x140015057
cmp rbx, r14
je 0x140015014
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140016f94
cmp word [rsp + 0x70], r13w
je 0x14001507d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140026590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140015077
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001507d
Function at 0x140016860
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000f76c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400168ea
cmp byte [rbp - 0x21], r15b
je 0x1400168e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140016920
call fcn.14000c214
test eax, eax
jne 0x14001690c
cmp byte [rbp - 0x21], r15b
je 0x140016904
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140016920
cmp byte [rbp - 0x21], r15b
je 0x14001691d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000ed4c
test eax, eax
jne 0x1400169c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f76c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001695f
cmp byte [rbp - 0x21], r15b
je 0x140016994
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140016994
call fcn.14000c214
test eax, eax
jne 0x140016980
cmp byte [rbp - 0x21], r15b
je 0x140016979
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140016994
cmp byte [rbp - 0x21], r15b
je 0x140016991
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000ed4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400169c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400169c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400169d1
mov rcx, rdi
call fcn.14000bfc4
cmp byte [rbp + 0x3f], r15b
je 0x1400169e0
mov rcx, qword [rbp + 0x27]
call fcn.14000bfc4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140018f90
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xf]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xf
jb 0x140001112
mov rax, rcx
ret

Function at 0x140001128
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xa]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xa
jb 0x14000112e
mov rax, rcx
ret
Function at 0x140001b1c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xe]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xe
jb 0x140001b22
mov rax, rcx
ret

Function at 0x140001b38
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x12]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x12
jb 0x140001b3e
mov rax, rcx
ret

Function at 0x140001b54
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x11]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x11
jb 0x140001b5a
mov rax, rcx
ret

Function at 0x140001b70
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x10]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x10
jb 0x140001b76
mov rax, rcx
ret

Function at 0x140001b8c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x15]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x15
jb 0x140001b92
mov rax, rcx
ret

Function at 0x140001ba8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x14]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x14
jb 0x140001bae
mov rax, rcx
ret

Function at 0x140001bc4
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 9]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 9
jb 0x140001bca
mov rax, rcx
ret

Function at 0x140001be0
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xc]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xc
jb 0x140001be6
mov rax, rcx
ret

Function at 0x140001bfc
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xd]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xd
jb 0x140001c02
mov rax, rcx
ret

Function at 0x140001c18
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x12]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 9
jb 0x140001c1e
mov rax, rcx
ret

Function at 0x140001c3c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 2]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 2
jb 0x140001c42
mov rax, rcx
ret
Function at 0x1400028b0
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 5]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 5
jb 0x1400028b6
mov rax, rcx
ret

Function at 0x1400028cc
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x2a]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x15
jb 0x1400028d2
mov rax, rcx
ret
Function at 0x1406892c8
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1406892f1
pop rbp
sub rbp, 0x29
sub rbp, 0x6892c8
jmp 0x140689351
sub rsp, 0x20
jmp 0x140689361
mov rax, 0x6892c8
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0xffffffffdaacb168
xor byte [rax], dl
inc rax
dec rcx
jne 0x140689380
jmp 0x140689397
and cl, ah
and ebx, 0x686854e1
push 0x60a9e920
imul ebp, dword [rax + 0x68], 0x20816920
scasd eax, dword [rdi]
test al, 0x6f
push 0xffffffffaf206868
stosb byte [rdi], al
push 0xffffffff9f206868
mov ah, byte [rax]
imul ebp, dword [rcx + 0x6864e9e3], 0x69206868
cmp byte [rax], 0x38
push 0xffffffff80692068
cmp byte [rax], bh
and al, dl
or ah, bh
jp 0x140689437
push 0x20686868
ror dword [0x1a8d0d170], 1
push 0x69206868
and dword [rax], 0x8cf4a7d2
and eax, 0x68686868
sub byte [rbp + 0x68], 0x68
push 0x68687e81
push 0x596a80a9
jns 0x14068941a
and cl, ch
test eax, 0x6868686c
and byte [rdi - 0x79129860], dl
xchg edi, eax
xchg edi, eax
xchg edi, eax
stosd dword [rdi], eax
xor byte [rdx], dh
cmp bh, byte [rax]
and al, dl
or ah, bh
jp 0x14068947c
jmp 0x1a8d100a8
push 0x20686868
ror dword [0x1a8d0d1b5], 1
or eax, 0x68683d96
push 0x69206868
add dword [rax + 0x6868686d], 0x686ae581
push 0x6815803a
push 0x203f3268
loope 0x1406893f9
and cl, ah
mov edi, 0x20a15920
pop rcx
mov edx, 0x206d80eb
xchg edi, eax
movabs al, byte [0xe0676868680cec67]
push 0xffffffffe30e6868
je 0x1406894a7
and byte [rcx - 0x5f], bl
and byte [rcx - 0x46], bl
jmp 0x1406893c2
call 0x12cd014ee
je 0x1406894c5
push 0xffffffff8193e868
in al, dx
jnp 0x1406894ce
push 0xffffffff93e90e68
xchg edi, eax
in al, dx
ja 0x1406894d9
push 0xffffffffa9972068
and dword [rax + 0x41979797], 0x20695124
jmp 0x1a8d1022e
and al, 0x51
imul esp, dword [rax], 0x686da9e9
push 0xffffffff80e92068
insb byte [rdi], dx
push 0xffffffffd9816868
xchg edi, eax
xchg edi, eax
xchg edi, eax
cmp al, 0x51
push 0x20
jmp 0x1a8d10345
push 0xffffffffe9206868
and cl, ch
sub byte [rbp + 0x68], 0x68
push 0xffffffff9797fb81
insd dword [rdi], dx
push 0xfffffffffb816868
xchg edi, eax
xchg edi, eax
xchg edi, eax
invalid
push 0x6fe06868
and cl, ch
scasd eax, dword [rdi]
imul ebp, dword [rax + 0x68], 0xabaf2068
push 0xffffffffaf206868
stosd dword [rdi], eax
push 0x68
push 0x67ba6a68
in eax, dx
outsd dx, dword [rsi]
push 0x7ee26868
and byte [rdi + 0x67ba7aae], dl
jmp 0x1406894a4
mov edx, 0x686fed67
push 0x207ee268
xchg edi, eax
scasb al, byte [rdi]
jp 0x1406894a1
jmp 0x1406894a4
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140013560
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400148b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400148d0
xor al, al
jmp 0x140014951
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400148e3
xor al, al
jmp 0x140014951
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001490d
xor al, al
jmp 0x140014951
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014921
xor al, al
jmp 0x140014951
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014933
xor al, al
jmp 0x140014951
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001494f
xor al, al
jmp 0x140014951
mov al, 1
add rsp, 0x38
ret
Function at 0x1400154d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140020690], rbx
je 0x14001551c
cmp rax, rbx
jne 0x14001550f
mov ebx, 1
mov esi, ebx
jmp 0x140015521
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400154f4
mov ebx, 1
mov eax, dword [0x140020698]
cmp eax, ebx
jne 0x140015537
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14001559c
mov eax, dword [0x140020698]
test eax, eax
jne 0x140015596
mov dword [0x140020698], ebx
lea r15, [0x140017850]
lea rdi, [0x140017838]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140015588
test eax, eax
jne 0x14001558c
cmp qword [rdi], 0
je 0x14001557d
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001555e
test eax, eax
je 0x14001559c
mov eax, 0xff
jmp 0x140015678
mov dword [0x1400200a4], ebx
mov eax, dword [0x140020698]
cmp eax, ebx
jne 0x1400155c3
lea rdx, [0x140017830]
lea rcx, [0x140017820]
call sub.msvcrt.dll__initterm
mov dword [0x140020698], 2
test esi, esi
jne 0x1400155d0
xor eax, eax
xchg qword [0x140020690], rax
cmp qword [0x1400206a0], 0
je 0x140015604
lea rcx, [0x1400206a0]
call fcn.140015d50
test eax, eax
je 0x140015604
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400206a0]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x1400200b8]
mov rdx, qword [0x1400200b0]
mov ecx, dword [0x1400200a8]
call fcn.140001724
mov dword [0x1400200a0], eax
cmp dword [0x1400200c0], 0
jne 0x140015634
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400200a4], 0
jne 0x140015649
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400200a0]
jmp 0x140015678
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140190000
add rsp, 0x28
jmp 0x1400154d0

Function at 0x140015c3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140015c88
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015c80
cmp dword [rcx + 0x3c], edx
jl 0x140015c80
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140015c80
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140015c88
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14003f940
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x14003f975
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x14003f950
and r10, 0xf
je 0x14003f9a5
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x14003f980
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x14003f999
mov rax, r8
repz ret

Function at 0x14003f9b0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x14003f9ed
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x14003f9c0
pxor xmm1, xmm1
and r10, 0xf
je 0x14003fa23
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x14003f9fb
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x14003fa17
mov rax, r8
repz ret
Function at 0x140076e60
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x460], rax
movzx ebp, r8b
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rbx
mov r8, rsi
test rsi, rsi
jne 0x140076f28
test bpl, bpl
jne 0x140076f28
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x30]
lea edx, [rsi + 6]
lea r8d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
setne bl
test eax, eax
je 0x140076f15
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9d, [rsi + 2]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140076f23
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140076f97
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov edx, 0x8000
lea rcx, [0x14030c868]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140076f97
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov bl, 1
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x14027b3d8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x14027b3e8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x14027b3f0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
jmp 0x140076f99
xor bl, bl
test rsi, rsi
jne 0x140076fae
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140076fae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x140077012
lea rax, [0x140279040]
mov edx, 0x208
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [0x14027b7a8]
mov rcx, rdi
call fcn.140077350
test eax, eax
jle 0x140077012
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140076fed
test al, 0x10
jne 0x14007700e
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jns 0x14007700e
cmp eax, 0xb7
jne 0x140077012
mov al, 1
jmp 0x140077014
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400e39a0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x140084f60
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0xab0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0xaa0], rax
mov r14, rdx
mov rbx, rcx
mov rax, qword [rcx]
call qword [rax + gethostname]
test al, al
jne 0x140084fab
mov eax, 2
jmp 0x14008510d
xor esi, esi
mov dword [rsp + 0x34], esi
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.WS2_32.dll_recv]
mov rbp, rax
nop word [rax + rax]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x2a0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
mov r8d, 0x800
lea rdx, [rsp + 0x2a0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
jne 0x14008501b
cmp eax, 0xea
jne 0x140085089
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x1400850cb
mov rbx, qword [r14 + 8]
sub rbx, qword [r14]
mov byte [rsp + 0x30], sil
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rbx + rax]
lea r8, [rsp + 0x60]
mov rcx, r14
call fcn.1400771e0
mov r8d, dword [rsp + 0x34]
mov rcx, qword [r14]
add rcx, rbx
lea rdx, [rsp + 0x2a0]
call sub.VCRUNTIME140.dll_memcpy
cmp dword [rsp + 0x34], 0x800
jb 0x14008510b
jmp 0x140084fd0
mov esi, 5
xor r8d, r8d
lea edx, [rsi - 1]
lea rcx, [rsp + 0x70]
call fcn.14025b540
nop
lea rcx, [rsp + 0x70]
call fcn.14025c1a0
test al, al
je 0x1400850c9
lea rdx, str.Pipe_read_failed__lastError
lea rcx, [rsp + 0x70]
call fcn.140253210
mov edx, edi
mov rcx, rax
call fcn.140253100
nop
jmp 0x140085101
mov esi, 5
xor r8d, r8d
lea edx, [rsi - 1]
lea rcx, [rsp + 0x70]
call fcn.14025b540
nop
lea rcx, [rsp + 0x70]
call fcn.14025c1a0
test al, al
je 0x140085101
lea rdx, str.Pipe_read_returned_zero_bytes
lea rcx, [rsp + 0x70]
call fcn.140253210
nop
lea rcx, [rsp + 0x70]
call fcn.140252b50
mov eax, esi
mov rcx, qword [rsp + 0xaa0]
xor rcx, rsp
call fcn.1400e39a0
lea r11, [rsp + 0xab0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140085b90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x280
lea rbp, [rsp + 0x30]
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rbp + 0x290], rbx
mov rax, qword [0x1403644c8]
xor rax, rbp
mov qword [rbp + 0x240], rax
mov r15, rdx
mov rsi, rcx
mov rax, qword [rcx]
call qword [rax + gethostname]
test al, al
jne 0x140085bde
mov eax, 2
jmp 0x140085cf4
mov rcx, qword [r15]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, rax
add rdi, 0x10
je 0x140085bd4
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x140085c08
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400e3930
sub rsp, rax
lea r14, [rsp + 0x30]
test r14, r14
jne 0x140085c27
lea eax, [r14 + 6]
jmp 0x140085cf4
mov r8, rdi
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [r15]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
mov word [r14], ax
mov rax, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [r14 + 8], rax
mov rcx, qword [r15]
mov rax, qword [rcx]
lea r8, [rdi - 0x10]
lea rdx, [r14 + 0x10]
call qword [rax + reloc.WS2_32.dll_htonl]
xor ebx, ebx
mov dword [rbp], ebx
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov r9, qword [rax]
mov rcx, rax
call qword [r9 + reloc.WS2_32.dll_htonl]
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
mov r8d, edi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140085ca4
cmp dword [rbp], ebx
je 0x140085ca4
xor eax, eax
jmp 0x140085cf4
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rbp + 0x10]
call fcn.14025b540
nop
lea rcx, [rbp + 0x10]
call fcn.14025c1a0
test al, al
je 0x140085ce6
lea rdx, str.Pipe_write_filed__lastError
lea rcx, [rbp + 0x10]
call fcn.140253210
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140253100
nop
lea rcx, [rbp + 0x10]
call fcn.140252b50
mov eax, 4
mov rcx, qword [rbp + 0x240]
xor rcx, rbp
call fcn.1400e39a0
mov rbx, qword [rbp + 0x290]
lea rsp, [rbp + 0x250]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret