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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r8, str.C:Dev_vcpkg_buildtreescurl_srcurl_7_81_0_459d17a9d2.cleanlibhmac.c
mov edx, 0x40
lea r9d, [rax + rax]
add rcx, r9
call fcn.18017df30
mov rbx, rax
test rax, rax
jne 0x1801b90c0
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1801b910b
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1801b9165
mov rsi, r15
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1801b9123
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1801b91a3
nop dword [rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1801e7154]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1801e7155]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1801b9170
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x1801b91c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r12, r9
mov rcx, r8
mov rsi, rdx
call fcn.18017b690
mov r8d, dword [r14 + 0x18]
mov edx, 0x40
mov ecx, dword [r14 + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
lea r8, str.C:Dev_vcpkg_buildtreescurl_srcurl_7_81_0_459d17a9d2.cleanlibhmac.c
call fcn.18017df30
mov rbx, rax
test rax, rax
je 0x1801b9384
lea rcx, [rax + 0x18]
mov qword [rax], r14
mov qword [rax + 8], rcx
mov eax, dword [r14 + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rbp
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [r14 + 0x1c]
jbe 0x1801b925f
call qword [r14]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [r14 + reloc.WS2_32.dll_htonl]
mov esi, dword [r14 + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [r14 + reloc.WS2_32.dll_recv]
mov r15d, dword [r14 + 0x20]
mov rcx, qword [rbx + 8]
call qword [r14]
mov rcx, qword [rbx + 0x10]
call qword [r14]
xor ebp, ebp
test r15, r15
je 0x1801b92c2
mov rbp, r15
nop word [rax + rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [r14 + reloc.WS2_32.dll_htonl]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [r14 + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1801b9280
mov eax, dword [r14 + 0x1c]
cmp rbp, rax
jae 0x1801b9306
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1801e7154]
mov r8d, 1
call qword [r14 + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1801e7155]
mov r8d, 1
call qword [r14 + reloc.WS2_32.dll_htonl]
mov eax, dword [r14 + 0x1c]
inc rbp
cmp rbp, rax
jb 0x1801b92d0
mov rcx, qword [rsp + 0x70]
call fcn.18017b690
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
mov rbp, qword [rsp + 0x58]
test rdi, rdi
jne 0x1801b933a
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
lea r8, str.C:Dev_vcpkg_buildtreescurl_srcurl_7_81_0_459d17a9d2.cleanlibhmac.c
mov edx, 0x81
mov rcx, rbx
call fcn.18017de40
mov rdi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
Function at 0x1801bad90
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1801badf5
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1801bada0
ret
Function at 0x1801bdc80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18027a0cc]
mov ebx, edi
test ecx, ecx
je 0x1801bddbb
mov rax, qword [0x18027a0c0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1801bdcd8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1801bdcb0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1801bddbb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1801be000
mov r8d, dword [0x18027a0cc]
cmp ebx, r8d
jae 0x1801bdd48
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18027a0c0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1801bdd41
mov edx, esi
mov ecx, ebx
call fcn.1801bdef0
mov edi, eax
test eax, eax
jne 0x1801bdd48
mov r8d, dword [0x18027a0cc]
inc ebx
cmp ebx, r8d
jb 0x1801bdd10
cmp qword [rsp + 0x20], 0
je 0x1801bddbb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1801bdda7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801bdd98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1801bdd70
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180275070]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1801bdef0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18027a0c0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1801bdf54
mov eax, 0xa
jmp 0x1801bdfe3
test esi, esi
je 0x1801bdf76
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1801bdf99
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1801bdf99
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1801bdf92
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1801bdf99
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1801be000
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18026a308]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1801be12a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1801be121
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1801be104
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1801be104
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1801be104
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1801be0c2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180275070]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1801be121
jmp 0x1801be0f7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1801be0f7
mov rcx, qword [0x180275070]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1801be121
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1801be070
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1801be183
cmp dword [rbx + 0xc], esi
jbe 0x1801be183
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1801be17c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1801be5d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1801be140
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1801bf700
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1801be780
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1801be7ef
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1801be7d8
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801be7cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1801be7a0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180275070]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1801be8b0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1801be8f0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18027a0b8]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1801be92e
cmp rsi, r14
jb 0x1801be926
cmp rsi, r15
jae 0x1801be926
cmp qword [rsi + 8], 0
jne 0x1801beaf7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1801be911
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1801be9c2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1801be9b9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1801be9b9
cmp dword [rsp + 0x70], 0x10000
je 0x1801bea3b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1801be9b9
sub rbx, rbp
cmp rbx, r14
jae 0x1801be980
test rsi, rsi
jne 0x1801beaa0
cmp rdi, r15
ja 0x1801beadf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1801beadf
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1801beadf
cmp dword [rsp + 0x70], 0x10000
je 0x1801bea71
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1801be9f2
jmp 0x1801beadf
test rbx, rbx
je 0x1801be9b9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1801beaa0
cmp rbx, r14
jae 0x1801be960
jmp 0x1801be9c2
test rdi, rdi
je 0x1801beadf
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1801beaa0
cmp rdi, r15
jbe 0x1801be9d0
jmp 0x1801beadf
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1801beab0
mov rax, qword [0x18027a0b8]
mov qword [rsi], rax
mov qword [0x18027a0b8], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1801c0ccc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1801c0d50
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1801c0d50
dec r8
sub rdx, 1
jne 0x1801c0d36
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0xa626ad
Capabilities:
Encrypt data using speck
Execute anti-debugging instructions

Disassembly:
and rbp, 0xfffffffffffffff0
inc di
or edi, 0x3a27d21b
mov qword [rsp], rdi
sbb rbp, rcx
push rdi
mov rsp, rbp
push rdi
push rdi
mov qword [rsp + 8], rsi
lea rsi, [rdi + rdi*8 + 0x984641f]
pushfq
pop rdi
mov qword [rsp], rdi
mov rsi, r9
jmp 0x1512e5f

Function at 0xa7a340
Capabilities:
Encrypt data using speck
Execute anti-debugging instructions

Disassembly:
not ax
jmp 0x1520de6
ret
or edi, eax
jmp 0x15108b4
je 0x150924b
movzx eax, byte [r9]
shl edi, 8
jmp 0x1520df8
cmp ecx, 5
jl 0x15259a9
mov qword [rsp + 0x28], rsi
btr esi, 0x95
cdqe
nop
mov eax, r10d
cmp r14w, 0x4a06
add rsp, 0x30
cmovne rdi, rbx
pop r15
pop r14
movzx edi, cx
pop r13
pop r12
pop rdi
pop rbp
not bh
pop rbx
jmp 0xa70c01
inc r9
cmc
jmp 0xb005cc
call 0x1515b46
dec qword [rsp]
div rbp
call fcn.00afb209
inc ecx
test bl, 0xab
jmp 0xa7a340
cmp r9, r13
jmp 0xaee123
Function at 0x404c80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004274e0]
test rax, rax
je 0x404c92
call rax
nop
add rsp, 0x28
jmp fcn.0041de70

Function at 0x40b680
Capabilities:
Terminate process

Disassembly:
mov rax, qword [0x00428cf0]
test rax, rax
je 0x40b6a4
lea rdx, [rax - 1]
mov qword [0x00428cf0], rdx
lea rdx, [0x004301e0]
mov qword [rdx + rax*8 - 8], rcx
ret
jmp fcn.0041de70

Function at 0x40b8e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 8
call fcn.004217b0
lea rcx, [0x00428370]
mov qword [rax], rcx
lea rdx, [0x00428340]
lea r8, [0x00408c30]
mov rcx, rax
add rsp, 0x28
jmp fcn.00421870

Function at 0x40b9d0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov ecx, 0x30
call fcn.004217b0
mov rsi, rax
lea rax, [0x00429140]
mov qword [rsi], rax
mov qword [rsi + 0x28], 0xf
mov qword [rsi + 0x20], 0
mov byte [rsi + 0x10], 0
lea rbx, [rsi + 8]
cmp byte [rdi], 0
je 0x40ba18
mov rcx, rdi
call fcn.004115b0
jmp 0x40ba1a
xor eax, eax
mov rcx, rbx
mov rdx, rdi
mov r8, rax
call fcn.00405bf0
lea rax, [0x004291a0]
mov qword [rsi], rax
lea rdx, [0x00429000]
lea r8, [0x0040bdf0]
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.00421870

Function at 0x40ba80
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov ecx, 0x30
call fcn.004217b0
mov rsi, rax
lea rax, [0x00429140]
mov qword [rsi], rax
mov qword [rsi + 0x28], 0xf
mov qword [rsi + 0x20], 0
mov byte [rsi + 0x10], 0
lea rbx, [rsi + 8]
cmp byte [rdi], 0
je 0x40bac8
mov rcx, rdi
call fcn.004115b0
jmp 0x40baca
xor eax, eax
mov rcx, rbx
mov rdx, rdi
mov r8, rax
call fcn.00405bf0
lea rax, [0x00429170]
mov qword [rsi], rax
lea rdx, [0x00429020]
lea r8, [0x0040be50]
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.00421870

Function at 0x40e870
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x58
cmp dword [0x004306d0], 0
jg 0x40e8da
mov eax, dword [0x004306d0]
test eax, eax
jg 0x40e8da
lea rsi, [0x004306d0]
test eax, eax
jne 0x40e8a8
mov rcx, rsi
mov edx, 0xffffffff
xor r8d, r8d
call fcn.0041d7ae
test eax, eax
je 0x40e8bd
xor ecx, ecx
xor edx, edx
call sub.KERNEL32_SleepEx
mov eax, dword [0x004306d0]
test eax, eax
jle 0x40e890
jmp 0x40e8da
lea rcx, [0x004306d8]
call fcn.00423578
lea rcx, [0x004306d0]
mov edx, 1
call fcn.0041d7d0
lea rcx, [0x004306d8]
call fcn.00423478
cmp qword [0x004302d0], 0
jne 0x40e979
lea rcx, [rsp + 0x28]
call sub.KERNEL32_GetSystemInfo
mov esi, dword [rsp + 0x2c]
mov edi, dword [rsp + 0x50]
lea eax, [rdi - 1]
test rdi, rax
jne 0x40e916
lea eax, [rsi - 1]
test rsi, rax
je 0x40e91b
call fcn.0041de70
mov qword [0x004302e0], rdi
mov qword [0x004302d8], rsi
mov qword [0x004302e8], 0x40000
mov qword [0x004302f0], 0x200000
mov dword [0x004302f8], 7
mov dword [0x00430670], 7
lea rcx, [0x00430678]
mov edx, 0x80000fa0
call sub.KERNEL32_InitializeCriticalSectionAndSpinCount
call sub.KERNEL32_GetTickCount
and eax, 0xfffffff0
xor rax, 0x55555558
mov qword [0x004302d0], rax
lea rcx, [0x004306d8]
call fcn.004235a8
nop
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x4116f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
sub rsp, 0x20
mov esi, edx
call sub.KERNEL32_GetFileAttributesA
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x41170d
add rsp, 0x20
pop rsi
jmp fcn.00413830
xor eax, eax
test sil, 2
je 0x41172a
test cl, 1
je 0x41172a
call fcn.0041d4d0
mov dword [rax], 5
mov eax, 0xffffffff
add rsp, 0x20
pop rsi
ret
jmp 0x4116f0

Function at 0x411ad0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov ebx, edx
mov rsi, rcx
mov qword [rsp + 0xa8], r9
mov qword [rsp + 0xa0], r8
call fcn.004131b0
test bh, 0xc0
je 0x411afd
mov ebp, ebx
jmp 0x411b0d
mov rax, qword [0x0042df90]
mov ebp, 0xc000
and ebp, dword [rax]
or ebp, ebx
mov edi, ebp
shr edi, 1
and edi, 0x4000
xor edi, 0x4000
or edi, ebp
mov eax, ebp
and eax, 0x700
cmp eax, 0x1ff
ja 0x411b3b
cmp eax, 0x100
jne 0x411b81
mov ebx, 4
jmp 0x411b86
cmp eax, 0x2ff
ja 0x411b4b
cmp eax, 0x200
jne 0x411b81
jmp 0x411b73
cmp eax, 0x4ff
ja 0x411b60
cmp eax, 0x300
jne 0x411b81
mov ebx, 2
jmp 0x411b86
mov ebx, 1
cmp eax, 0x500
je 0x411b86
cmp eax, 0x600
jne 0x411b7a
mov ebx, 5
jmp 0x411b86
cmp eax, 0x700
je 0x411b86
mov ebx, 3
mov r14d, ebp
and r14d, 0x100
je 0x411bca
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xa0]
and eax, dword [0x00429750]
mov edx, 1
mov ecx, 0x80
test al, 0x80
cmove ecx, edx
jmp 0x411bda
mov rcx, rsi
call sub.KERNEL32_GetFileAttributesA
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov edx, 0x80000000
mov eax, ebp
and eax, 3
je 0x411bfc
cmp eax, 2
jne 0x411bf2
mov edx, 0xc0000000
jmp 0x411bfc
cmp eax, 1
jne 0x411c23
mov edx, 0x40000000
mov eax, ebp
and eax, 0x70
xor r8d, r8d
cmp eax, 0x10
je 0x411c33
cmp eax, 0x30
jne 0x411c16
mov r8d, 2
jmp 0x411c33
cmp eax, 0x20
jne 0x411c2d
mov r8d, 1
jmp 0x411c33
mov ecx, 1
jmp 0x411ce9
mov r8d, 3
test bpl, 4
je 0x411c46
cmp edx, 0x80000000
sete al
movzx r8d, al
mov dword [rsp + 0x48], 0x18
mov qword [rsp + 0x50], 0
shr ebp, 7
and ebp, 1
xor ebp, 1
mov dword [rsp + 0x58], ebp
lea r9, [rsp + 0x48]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], 0
mov rcx, rsi
call sub.KERNEL32_CreateFileA
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x411ccc
mov ecx, esi
call fcn.00411a30
mov edx, edi
or edx, 0x2000
test eax, eax
cmove edx, edi
and edx, 0xfffff8ff
mov ecx, esi
call fcn.00413360
mov edi, eax
cmp edi, 0xffffffff
jne 0x411cf0
mov ecx, 4
call fcn.00413780
mov rcx, rsi
call sub.KERNEL32_CloseHandle
mov edi, 0xffffffff
jmp 0x411cf0
call sub.KERNEL32_GetLastError
movzx ecx, ax
cmp ecx, 0x6e
jne 0x411ce9
mov eax, 0x50
mov ecx, 2
test r14d, r14d
cmovne ecx, eax
call fcn.00413780
mov edi, eax
call fcn.004131f0
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret