joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sym._errno
mov dword [rax], 0
test rbx, rbx
je 0x1400031f0
cmp byte [rbx], 0
je 0x1400031b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003200
test al, 0x10
je 0x1400031b8
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sym._fullpath
mov rcx, rsi
call sym.strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sym.malloc
mov rdx, rax
test rax, rax
je 0x140003228
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140003180
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0x244], rcx
mov ecx, eax
mov r9, qword [rsi + rcx - 8]
mov qword [r8 + rcx - 8], r9
mov rcx, r8
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [rdx + 0x244], 0
je 0x140003128
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x140003128
cmp cl, 0x2f
jne 0x1400031d8
mov eax, 0x2a
mov ecx, 0x20
mov word [r8 + rbp], ax
lea r8, [rdx + 0x130]
xor eax, eax
mov qword [rdx + 0x238], 0xffffffffffffffff
mov rdi, r8
mov dword [rdx + 0x240], 0
mov qword [rdx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rdx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
jne 0x140003210
test eax, eax
je 0x140003109
movzx ecx, byte [rsp + 0x20]
mov byte [r8], cl
test al, 2
je 0x140003109
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x140003109
call sym._errno
xor edx, edx
mov dword [rax], 0x14
mov rax, rdx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0x5c
mov rbp, rax
mov word [r8 + rbx], cx
jmp 0x140003128
call sym._errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x1400031c5
call sym._errno
xor edx, edx
mov dword [rax], 2
jmp 0x1400031c5
mov ecx, dword [rsp + 0x20]
mov dword [r8], ecx
mov ecx, eax
mov r9d, dword [rsi + rcx - 4]
mov dword [r8 + rcx - 4], r9d
jmp 0x140003109
call sym._errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x1400031c5

Function at 0x140003ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
je 0x140003b30
cmp edx, 7
ja 0x140003b30
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003b3d
xor edx, edx
test al, 0x10
jne 0x140003b0d
test al, 1
je 0x140003b0d
and ebx, 2
mov edx, ebx
jne 0x140003b1a
mov eax, edx
add rsp, 0x20
pop rbx
ret
cmp eax, 5
jne 0x140003b30
call sym._errno
mov dword [rax], 0xd
or edx, 0xffffffff
jmp 0x140003b0d
call sym._errno
mov dword [rax], 0x16
jmp 0x140003b25
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
ja 0x140003b15
cmp eax, 1
jbe 0x140003b30
call sym._errno
mov dword [rax], 2
jmp 0x140003b25
Function at 0x14001baa0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14001bb83
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001bb83
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 0x14001bba1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14001bb73
cmp word [rcx], 0x5c
jne 0x14001bb6c
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x14001bb6c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001bb57
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x14001bb69
test r8b, 0x10
jne 0x14001bb6c
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x14001bb6c
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140015580
test edi, edi
jne 0x14001bad0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140015570
int3

Function at 0x14002720c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140042100]
test rax, rax
je 0x140027256
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027256
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140027256
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140027256
cmp dword [rcx + 0x84], 0xe
jbe 0x140027256
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140027258
xor al, al
add rsp, 0x28
ret

Function at 0x14002fcc4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002fadc
Function at 0x14000a370
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140017060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000a3b0
mov eax, 0xff
jmp 0x14000a55b
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x14000a3cc
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x140018cc8], r9d
mov dword [0x140018cd0], ecx
mov dword [0x140018cd4], edx
mov dword [0x140018cd8], eax
mov dword [0x140018ccc], r8d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000a443
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000a443
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000a443
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x14000a445
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x14000a445
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.14000c07c
test eax, eax
jne 0x14000a47b
cmp dword [0x14001871c], 2
je 0x14000a467
call fcn.14000be60
mov ecx, 0x1c
call fcn.14000beac
mov ecx, 0xff
call fcn.14000bab0
call fcn.14000b990
test eax, eax
jne 0x14000a4a7
cmp dword [0x14001871c], 2
je 0x14000a492
call fcn.14000be60
mov ecx, 0x10
call fcn.14000beac
mov ecx, 0xff
call fcn.14000bab0
nop
call fcn.14000c0f0
test eax, eax
jns 0x14000a4ba
mov ecx, 0x1b
call fcn.14000bacc
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14001a8d0], rax
call fcn.14000c890
mov qword [0x140018720], rax
call fcn.14000c38c
test eax, eax
jns 0x14000a4e5
mov ecx, 8
call fcn.14000bacc
call fcn.14000c66c
test eax, eax
jns 0x14000a4f8
mov ecx, 9
call fcn.14000bacc
mov ecx, edi
call fcn.14000bb2c
test eax, eax
je 0x14000a50a
mov ecx, eax
call fcn.14000bacc
mov r8, qword [0x140018cb8]
mov qword [0x140018ce8], r8
mov rdx, qword [0x140018cb0]
mov ecx, dword [0x140018cac]
call fcn.140006490
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14000a53b
mov ecx, eax
call fcn.14000be50
call fcn.14000bb18
jmp 0x14000a559
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000a5c0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call 0x14017f000
add rsp, 0x28
jmp 0x14000a370

Function at 0x14000b06c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000ba44
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14000bcc0
Function at 0x140001485
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov ebx, edx
mov ecx, 0x40000
xor edx, edx
mov rbp, r8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, 0xa
xor edx, edx
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, rax
test ebx, ebx
jle 0x1400014d1
movsxd r9, ebx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov r8, rax
xor eax, eax
cmp ebx, eax
jle 0x1400014ed
mov rdx, rax
and edx, 7
mov dl, byte [rbp + rdx]
xor dl, byte [rdi + rax]
mov byte [r8 + rax], dl
inc rax
jmp 0x1400014d3
mov rcx, r8
mov r9, r8
lea r8, [0x140001450]
call fcn.140001453
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001550
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r9d, r9d
mov r8d, 1
mov rdi, rcx
xor ecx, ecx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov ebx, edx
mov qword [rsp + 0x30], rcx
mov edx, 0x40000000
lea rcx, [0x14000c060]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400015f1
xor edx, edx
mov ebp, 0x19000
lea r12, [rsp + 0x4c]
mov dword [rsp + 0x4c], edx
test ebx, ebx
jle 0x1400015d0
cmp ebp, ebx
mov r9, r12
mov rdx, rdi
mov rcx, rsi
cmovg ebp, ebx
xor eax, eax
mov qword [rsp + 0x20], rax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400015db
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400015f1
mov edx, dword [rsp + 0x4c]
mov ecx, 0x3e8
add rdi, rdx
sub ebx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400015aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000161a
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov rdi, rcx
xor ecx, ecx
mov esi, edx
mov rbx, r8
mov dword [rsp + 0x34], ecx
lea rbp, [rsp + 0x38]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], ecx
xor edx, edx
mov rcx, qword [0x14000c040]
mov r9, rbp
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], rdx
xor edx, edx
call r12
test eax, eax
je 0x140001697
mov r8d, dword [rsp + 0x34]
movsxd rdx, dword [rbx]
cmp r8d, 0xffffffff
je 0x140001697
xor eax, eax
mov rcx, qword [0x14000c040]
add rdx, rdi
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x3c]
add dword [rbx], eax
jmp 0x140001646
xor eax, eax
cmp dword [rbx], esi
sete al
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001711
Capabilities:
Create mailslot
Create thread

Disassembly:
push rbx
add rsp, 0xffffffffffffff80
lea rbx, [0x14000c060]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x70], 0x5c
mov dword [rsp + 0x68], 0x74
mov dword [rsp + 0x60], 0x6f
mov dword [rsp + 0x58], 0x6c
mov dword [rsp + 0x50], 0x73
mov dword [rsp + 0x48], 0x6c
mov dword [rsp + 0x40], 0x69
mov r8d, 0x5c
mov rcx, rbx
mov dword [rsp + 0x38], 0x61
mov dword [rsp + 0x30], 0x6d
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov dword [rsp + 0x78], edx
lea rdx, str._c_c_c_c_c_c_c_c_c_c_c_c_cslot__d
call fcn.140001520
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov qword [0x14000c040], rax
inc rax
je 0x1400017fc
xor eax, eax
xor edx, edx
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x20], edx
lea r8, [0x1400015fc]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
call fcn.1400016a9
mov rcx, qword [0x14000c040]
sub rsp, 0xffffffffffffff80
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
sub rsp, 0xffffffffffffff80
pop rbx
ret

Function at 0x140001ad0
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.140007750
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.140007750
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 0x140001b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c114]
mov rbx, rcx
test esi, esi
jle 0x140001c70
mov rax, qword [0x14000c118]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b70
mov rcx, rbx
call fcn.140002590
mov rdi, rax
test rax, rax
je 0x140001c92
mov rax, qword [0x14000c118]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400026d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c118]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c20
add dword [0x14000c114], 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 [0x14000c118]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001ad0
nop dword [rax]
xor esi, esi
jmp 0x140001b98
mov rax, qword [0x14000c118]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001ad0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001ad0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002200
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c180]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c160]
test rbx, rbx
je 0x14000225c
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 0x140002253
test rsi, rsi
je 0x140002253
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002238
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 0x140002590
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002610
Capabilities:
Parse pe header

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

Function at 0x1400026d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400026ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400026f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14089372f
Capabilities:
Encode data using xor

Disassembly:
lea r14, [rsi*4 + 0x3fb50ab9]
neg esi
jo 0x140a3d038
cmp r14d, 0x3ace2b3e
call fcn.1404c6cfe
call fcn.1408adcc1
sete r14b
movabs rbx, 0x3441f2f555c03f8
bswap rbx
cmp r14w, 0x7a33
bswap rbx
mov rbx, qword [rsp + 8]
mov rsi, r14
jle 0x14052acea
push r14
pushfq
movabs r14, 0x64c23d7661621df2
or r14, r14
cmp r14b, 0x1a
setbe r14b
mov r14, qword [rsp + 8]
mov qword [rsp + 8], 0x4f5bb27
push qword [rsp]
popfq
lea rsp, [rsp + 8]
call fcn.1409d090f
push rsi
mov rdi, qword [rsp + 0x18]
mov qword [rsp + 0x18], 0xffffffffbd6da1a7
movabs r14, 0x39ea4c9f3ee83fc1
push rdx
push rbx
mov rdx, r14
mov rdx, qword [rsp + 8]
call 0x14089372f
ja 0x140a3d0cf
syscall
push 0x38d82a50
not qword [rsp]
pushfq
neg qword [rsp + 8]
push rdi
push 0x5f175151
xor byte [rsp + 0x18], 0x89
push r14
mov qword [rsp + 0x20], 0x327f96f8
push rcx
xor byte [rsp + 0x10], 0x4e
movabs r14, 0x28667ada74e45280
xor qword [rsp + 0x10], 0x6a933f3a
test r14, r14
mov r14, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
je 0x140a3d069
movabs rcx, 0x5de257eb171769e9
pop rcx
bswap edi
mov rdi, qword [rsp + 0x10]
cmp word [rsp + 8], 0x6747
call fcn.1404ba468
mov word [rcx + 0x48], ss
mov ecx, 0x26783ca5
invalid

Function at 0x1409fe453
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, 0x1a6951f8
rol eax, 3
add eax, 0x7da27b2a
cmp spl, r14b
cmc
test r13b, r14b
push rsi
movsx si, r11b
xor dword [rsp], eax
mov sil, 0xec
sub si, 0x3c1b
pop rsi
stc
movsxd rax, eax
test rdx, 0x798d0162
add rbx, rax
jmp 0x140a0f231
add r9, 4
xor eax, esi
bswap eax
test spl, al
clc
add eax, 0x71e43ba7
jmp 0x140992482
push rdx
push rax
movsx dx, r9b
seta ah
not ah
push r12
not dl
movzx rax, r14w
cwd
push rsi
movsx rdx, r15w
movzx rax, sp
cdq
push rcx
lahf
cbw
cmovae si, r15w
push r11
push r8
cbw
movsx rax, ax
mov si, 0x7ed4
push rdi
lahf
movsx rdx, r11w
cwde
push rbp
cqo
rdtsc
push r13
push r15
cbw
movsx r11d, bx
cdqe
pushfq
sbb rax, 0x24d82191
xadd al, r11b
btr cx, bx
push r10
btc ebp, r14d
xor r11b, 0xf8
neg r11b
push rbx
btc bx, 0x62
or eax, esi
shld r11d, eax, 0x74
push r9
bsf cx, r10w
dec bpl
sal bh, cl
push r14
test spl, bpl
movabs r11, 0
movzx dx, dil
push r11
clc
movzx rax, r11w
movzx bx, bpl
mov r9, qword [rsp + 0x90]
btr edx, esi
btc edx, 0x8f
rdtsc
neg r9d
xor r9d, 0x7b4d49e2
rol dx, 0xda
cwd
sal esi, 0x3d
not r9d
bswap r9d
sub ch, 0x2c
sub r9d, 0x540e30f2
ror r9d, 2
lea r9, [r9 + r11]
cbw
movabs rdx, 0x100000000
test r14w, 0x7200
btc cx, 0xd
lea r9, [r9 + rdx]
bts rcx, rdx
shl eax, 0x7d
mov rbp, rsp
shl sil, cl
sar al, cl
sub rsp, 0x180
add si, 0x622e
and rsp, 0xfffffffffffffff0
mov rsi, r9
stc
shr rax, 0xeb
movabs rcx, 0
bt ebx, 0x98
test r13b, r12b
sub rsi, rcx
rcr rax, cl
lea rbx, [0x1409fe590]
cmp r13b, r15b
shl ax, 0x84
not eax
mov eax, dword [r9]
cmp eax, 0x3d176b8c
cmc
jmp 0x1409f0f46
jmp rbx
Function at 0x140006660
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor edx, edx
mov ecx, 2
xor esi, esi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140006702
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400066f5
nop dword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400066f1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400066c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x140006711
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x140006711
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400514f0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000a150
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000a1ad
lea rbx, [0x140054d40]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000a194
cmp r10, 2
jb 0x14000a194
cmp byte [r9], r8b
jne 0x14000a194
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000a170
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000a1ef
lea rbx, [0x140054d40]
cmp r8b, 0x23
jne 0x14000a1d3
cmp byte [r9], r8b
jne 0x14000a1d3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000a1c0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000a330
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000a34a
mov qword [r8], 0
lea rdx, [0x14005916c]
call fcn.14000a200
mov rbx, rax
test rax, rax
jne 0x14000a36a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000a443
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000a443
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000a443
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000a443
cmp rdi, 0xffffffffffffffff
je 0x14000a443
mov rax, qword [0x140095da0]
test rax, rax
je 0x14000a3e0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000a443
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000a430
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140095da0]
test rax, rax
je 0x14000a425
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000a44c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000a43e
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000a44e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000d140
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x110]
lea r8, [0x140054d40]
movsxd rcx, dword [rcx + 0x108]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x140095da0]
not ebx
cmp dword [rcx + 0x401c], ebx
jne 0x14000d1d5
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.14002c460
mov eax, ebx
add rsp, 0x20
pop rbx
ret