joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ee20
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
movzx r14d, dl
mov rbx, rcx
mov esi, edi
mov ebp, edi
mov dword [rsp + 0x30], edi
cmp qword [rcx], rsi
je 0x14002eebe
nop dword [rax]
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x14002eef9
test r14b, r14b
je 0x14002f01c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x12c
jg 0x14002eee3
cmp qword [rbx], rdi
jne 0x14002ee60
mov ebp, dword [rsp + 0x30]
mov r8d, dword [rbx + 8]
lea eax, [r8 + rbp]
cmp eax, 0x2000
jbe 0x14002ef39
lea rdx, str.buf_overflow:__d__d_n
mov r9d, ebp
mov ecx, 2
call fcn.140014e30
jmp 0x14002ef23
lea rdx, str.checkread_timeout_n
mov ecx, 2
call fcn.140014e30
jmp 0x14002f01c
mov rcx, qword [rbx]
lea r8, [rsp + 0x30]
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebp, dword [rsp + 0x30]
test ebp, ebp
jne 0x14002eebe
lea rdx, str.socket_was_closed_remotely_n
lea ecx, [rbp + 2]
call fcn.140014e30
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], rdi
mov dword [rbx + 8], edi
xor al, al
jmp 0x14002f01e
mov ecx, ebp
call fcn.14008597c
mov r8d, ebp
mov rsi, rax
mov rdx, rax
cmp dword [rbx + 0x1000c], edi
je 0x14002ef60
mov rcx, qword [rbx + 0x10010]
call 0x14055eb00
int3
mov rcx, qword [rbx]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test eax, eax
jg 0x14002ef9f
mov rcx, rsi
call fcn.1400856a4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14002ef32
lea r8, str.Stratum___reading_socket_failed__d__disconnect_n
mov r9d, eax
mov edx, 3
xor ecx, ecx
call fcn.140015020
jmp 0x14002ef23
movsxd rax, dword [rbx + 8]
lea rcx, [rbx + 0xc]
movsxd r8, ebp
add rcx, rax
mov rdx, rsi
call fcn.1400847d0
add dword [rbx + 8], ebp
mov rcx, rsi
call fcn.1400856a4
lea rdx, str.got__d_bytes_n
mov r8d, ebp
mov ecx, 2
call fcn.140014e30
movsxd rax, dword [rbx + 8]
lea rsi, [rbx + 0xc]
lea rdx, str.buf:__s_n
mov r8, rsi
mov ecx, 2
mov byte [rax + rbx + 0xc], dil
call fcn.140014e30
mov ecx, edi
cmp dword [rbx + 8], ecx
jle 0x14002f019
mov rax, rsi
nop
movzx edx, byte [rax]
cmp dl, 0x20
je 0x14002f00f
mov byte [rsi], dl
inc edi
inc rsi
inc ecx
inc rax
cmp ecx, dword [rbx + 8]
jl 0x14002f000
mov dword [rbx + 8], edi
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140084590
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400348d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
cmp dword [0x1401304c0], 0
mov r9, rdx
jne 0x1400349cc
cmp qword [0x140128570], 0
jne 0x140034903
lea rdx, str.df_has_empty_pool__skip_n
mov ecx, 2
add rsp, 0x28
jmp fcn.140014e30
cmp qword [0x140128578], 0x10
lea rax, [0x140128560]
cmovae rax, qword [0x140128560]
sub r9, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140034933
inc rax
test ecx, ecx
jne 0x140034920
test edx, edx
jne 0x140034955
cmp dword [0x140128580], r8d
jne 0x140034955
lea rdx, str.df_has_same_pool__skip_n
mov ecx, 2
add rsp, 0x28
jmp fcn.140014e30
lea rdx, str.df_has_different_pool__disconnect_n
mov ecx, 2
mov qword [rsp + 0x20], rbx
call fcn.140014e30
xor ebx, ebx
cmp dword [0x140128550], ebx
je 0x140034991
mov rcx, qword [0x1401182d8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [0x1401182d8], rbx
mov dword [0x1401182e0], ebx
jmp 0x14003499d
lea rcx, [0x1401285c8]
call fcn.140025e10
cmp byte [0x1401182d0], bl
je 0x1400349bb
mov byte [0x1401304a8], bl
mov dword [0x14012f6fc], ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov byte [0x14012f6fa], bl
mov dword [0x14012f6e8], ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140034af0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1401339a8]
mov dword [0x14012f8ec], 1
lea rcx, [rdi + 0x38]
mov dword [rdi + 0x78], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000f150
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140088948
int3
Function at 0x140034e90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140034a90
mov rcx, qword [0x140107c10]
cmp rcx, 0xffffffffffffffff
je 0x140034eac
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140088948
int3

Function at 0x140034ed0
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
cmp dword [0x14012f8bc], 1
je 0x140034ffb
mov rdi, qword [0x1401339a8]
xor esi, esi
mov dword [0x14012f8ec], 1
lea rcx, [rdi + 0x38]
mov dword [rdi + 0x78], esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000f150
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140107c10]
cmp rcx, 0xffffffffffffffff
je 0x140034f3c
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
test rax, rax
je 0x140034fe6
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14008cf90
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14003506c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Restarting_failed:_error__d_n
xor ecx, ecx
mov r8d, eax
call fcn.140014e30
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, str.Rebooting_n
xor ecx, ecx
call fcn.140014e30
call fcn.140034b60
mov rdi, qword [0x1401339a8]
lea rcx, [rdi + 0x38]
xor esi, esi
mov dword [0x14012f8ec], 1
mov dword [rdi + 0x78], esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000f150
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140088948
int3
lea rdx, str.Restarting_OK__exit..._n_n_n
xor ecx, ecx
call fcn.140014e30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140088948
int3
Function at 0x140066270
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rcx + 8]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x140066260]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call fcn.140089148
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400662ac
add rsp, 0x30
pop rbx
ret
mov edx, dword [rbx + 0x10]
test edx, edx
je 0x1400662bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp byte [rbx + 0xc], 0
jne 0x1400662cc
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14006b7f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x14006b8e0
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov ecx, dword [0x140104240]
cmp ecx, 0xffffffff
jne 0x14006b90d
xor r14d, r14d
jmp 0x14006b916
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov qword [rsp + 0x50], r14
test r14, r14
je 0x14006ba48
mov rdi, qword [r14 + 0x18]
cmp qword [r14 + 0x28], 0
jne 0x14006b93a
test rdi, rdi
je 0x14006ba21
jmp 0x14006b940
test rdi, rdi
je 0x14006b994
nop
mov rax, qword [rdi + 8]
mov qword [r14 + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006b977
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [r14 + 0x18]
test rdi, rdi
jne 0x14006b940
mov rsi, qword [r14 + 0x20]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x14006b924
mov rdi, rbx
cmp byte [rbx + 0x19], 0
jne 0x14006b9ee
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14006b9ce
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14006b9ee
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14006b9c0
jmp 0x14006b9ee
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14006b9eb
cmp rbx, qword [rax + 0x10]
jne 0x14006b9eb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14006b9d8
mov rbx, rax
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x14006ba06
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x14006ba06
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r8, rdi
lea rdx, [rsp + 0x58]
lea rcx, [r14 + 0x20]
call fcn.14006add0
cmp rbx, rsi
jne 0x14006b9a0
jmp 0x14006b924
lea rdx, [0x14006adb0]
lea rcx, [0x14012b600]
call fcn.14006ab90
mov ecx, dword [0x140104240]
cmp ecx, 0xffffffff
je 0x14006ba48
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test r14, r14
je 0x14006ba72
lock dec dword [r14 + 8]
jne 0x14006ba72
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14006b8e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x14006b8e0
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov ecx, dword [0x140104240]
cmp ecx, 0xffffffff
jne 0x14006b90d
xor r14d, r14d
jmp 0x14006b916
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov qword [rsp + 0x50], r14
test r14, r14
je 0x14006ba48
mov rdi, qword [r14 + 0x18]
cmp qword [r14 + 0x28], 0
jne 0x14006b93a
test rdi, rdi
je 0x14006ba21
jmp 0x14006b940
test rdi, rdi
je 0x14006b994
nop
mov rax, qword [rdi + 8]
mov qword [r14 + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006b977
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [r14 + 0x18]
test rdi, rdi
jne 0x14006b940
mov rsi, qword [r14 + 0x20]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x14006b924
mov rdi, rbx
cmp byte [rbx + 0x19], 0
jne 0x14006b9ee
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14006b9ce
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14006b9ee
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14006b9c0
jmp 0x14006b9ee
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14006b9eb
cmp rbx, qword [rax + 0x10]
jne 0x14006b9eb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14006b9d8
mov rbx, rax
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x14006ba06
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x14006ba06
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r8, rdi
lea rdx, [rsp + 0x58]
lea rcx, [r14 + 0x20]
call fcn.14006add0
cmp rbx, rsi
jne 0x14006b9a0
jmp 0x14006b924
lea rdx, [0x14006adb0]
lea rcx, [0x14012b600]
call fcn.14006ab90
mov ecx, dword [0x140104240]
cmp ecx, 0xffffffff
je 0x14006ba48
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test r14, r14
je 0x14006ba72
lock dec dword [r14 + 8]
jne 0x14006ba72
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14006ea70
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r10, rcx
cmp rcx, rdx
je 0x14006eaa7
mov r11d, 0x9e3779b9
movsx rcx, byte [r10]
mov r9, r8
mov rax, r8
shr rax, 2
shl r9, 6
inc r10
add rax, r9
add rax, r11
add rcx, rax
xor r8, rcx
cmp r10, rdx
jne 0x14006ea81
movabs rax, 0x200009c482fb3f8b
mul r8
shr rdx, 0x1c
imul edx, edx, 0x7fffd8ee
sub r8d, edx
lea eax, [r8 + 0x2710]
ret
Function at 0x14006f7d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
xor r10d, r10d
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r9d
mov rbx, rcx
cmp rdx, r8
je 0x14006f816
mov r11d, 0x9e3779b9
nop
movsx rcx, byte [rdx]
mov r9, r10
mov rax, r10
shr rax, 2
shl r9, 6
inc rdx
add rax, r9
add rax, r11
add rcx, rax
xor r10, rcx
cmp rdx, r8
jne 0x14006f7f0
movabs rax, 0x200009c482fb3f8b
lea rcx, [rsp + 0x30]
mul r10
mov rax, qword [rbx + 8]
shr rdx, 0x1c
imul edx, edx, 0x7fffd8ee
sub r10d, edx
add r10d, 0x2710
mov dword [rsp + 0x34], r10d
cmp rcx, rax
jae 0x14006f895
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
cmp rcx, rdx
ja 0x14006f895
mov qword [rsp + 0x20], rdi
lea rdi, [rsp + 0x30]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rbx + 0x10]
jne 0x14006f87b
mov edx, 1
mov rcx, rbx
call fcn.140072b50
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14006f88e
mov rax, qword [rbx]
mov rcx, qword [rax + rdi*8]
mov qword [rdx], rcx
mov rdi, qword [rsp + 0x20]
jmp 0x14006f8b9
cmp rax, qword [rbx + 0x10]
jne 0x14006f8a8
mov edx, 1
mov rcx, rbx
call fcn.140072b50
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14006f8b9
mov rax, qword [rsp + 0x30]
mov qword [rcx], rax
add qword [rbx + 8], 8
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
mov rbx, qword [rsp + 0x38]
cmp rcx, rax
je 0x14006f913
add rax, 0xfffffffffffffff8
cmp rax, rcx
je 0x14006f913
lea rdx, [rax - 4]
nop dword [rax]
mov r8d, dword [rdx]
cmp dword [rdx + 8], r8d
jge 0x14006f913
mov r8d, dword [rax]
mov r9d, dword [rdx - 4]
sub rax, 8
mov dword [rdx - 4], r8d
mov dword [rax + 8], r9d
mov r8d, dword [rdx + 8]
mov r9d, dword [rdx]
mov dword [rdx], r8d
sub rdx, 8
mov dword [rdx + 0x10], r9d
cmp rax, rcx
jne 0x14006f8e0
add rsp, 0x28
ret

Function at 0x140088948
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400887b0

Function at 0x14008f6f0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14012bcf0], eax
call fcn.140093ba0
mov rcx, rbx
call fcn.14008f710
cmp dword [0x14012bcf0], 0
jne 0x140085c5a
mov ecx, 1
call fcn.140093ba0
mov ecx, 0xc0000409
add rsp, 0x20
pop rbx
jmp 0x14008f6f0
push rbx
sub rsp, 0x20
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140b28758
Capabilities:
Encrypt data using speck

Disassembly:
mov qword [rsp + 0x18], r8
movsx eax, r15w
test rcx, 0x75f0385a
shr r8d, cl
mov qword [rsp + 0x10], rdx
dec r8w
mov qword [rsp + 8], rcx
xadd al, r11b
cbw
push rbx
push rbp
movzx ebx, bx
shl r8b, 0x30
sal r10w, cl
push rsi
btr edx, esp
bt bx, r8w
push rdi
xchg r8d, edi
rcl dx, 0x81
cmp cl, r9b
push r12
sub bh, 0x95
bts r12d, ebp
sal rdi, 5
push r13
push r14
sar r13w, 0x1c
push r15
lahf
sub rsp, 0x48
mov eax, dword [rcx + 0x4c]
cmp bx, r14w
mov edx, edi
mov edi, dword [rcx + 0x58]
btc r11, rsi
mov r13, qword [rcx + 0x10]
test cl, r12b
cmp dil, r15b
rcr r10b, cl
mov r15d, dword [rcx + 0x48]
mov rdx, rcx
movzx ebx, si
sub r11w, r10w
bsf r8w, bx
mov dword [rsp], eax
cmp bp, 0x4998
sar bpl, 0xf7
mov eax, dword [rcx + 0x50]
mov rsi, qword [rdx + 0x18]
not bpl
rol r8w, 0x66
mov r10d, dword [rdx + 0x40]
mov r14, qword [rdx + 0x30]
not bpl
sal bl, 0x76
xor r12w, bp
mov rbp, qword [rdx + 0x20]
neg r8w
rol r11w, 0x19
sbb r11w, 0x8e1
mov r9d, dword [rdx + 0x28]
jmp 0x140b2883a
mov r8d, dword [rdx + 0x2c]
rol r11, cl
btr rbx, 0xd0
sbb r12, 0x67b85824
mov dword [rsp + 4], eax
cdqe
mov eax, dword [rcx + 0x54]
movzx r12w, al
mov ecx, dword [rcx + 8]
sbb r11b, r8b
sar r11b, 0x95
cmc
mov dword [rsp + 8], eax
shr r12w, cl
cmp r9b, spl
mov eax, 1
sbb r11d, ecx
mov r11d, 1
mov dword [rsp + 0xc], edi
cmp ebp, r11d
rcl r12w, cl
mov rbx, r12
mov qword [rsp + 0x30], rsi
sal ebx, cl
add ebx, ebp
movsx r12w, r15b
shl r11d, cl
sbb r12b, 0x26
mov ecx, dword [rdx + 4]
sal bl, 0x80
cmova bx, ax
mov dword [rsp + 0xa8], r10d
shl eax, cl
dec r12b
dec r11d
inc r12b
mov rbx, r14
movzx ecx, r14w
dec eax
rol bh, 0x36
mov dword [rsp + 0x20], r11d
cmovbe r12, rbp
sal r12, cl
mov dword [rsp + 0x24], eax
mov eax, dword [rdx]
mov dword [rsp + 0x28], eax
and r12b, r13b
mov rax, qword [rdx + 0x38]
mov qword [rsp + 0x18], rax
movzx ebx, bp
neg bx
or eax, r10d
mov eax, dword [rdx + 0x44]
sar cl, cl
rcl r12b, cl
mov dword [rsp + 0x10], eax
shr bx, 0xef
xor eax, eax
mov r12d, eax
test di, r11w
nop
stc
movsx rbx, r10w
shr ebx, cl
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.14014a000
add rsp, 0x28
jmp 0x140008188
Function at 0x140002024
Capabilities:
Parse pe header

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

Function at 0x140005f58
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005d84

Function at 0x140012610
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012638
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012638
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x45bbf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x45bc11
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45bc8d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x45bc32
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45bc8d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x45bc70
cmp ecx, 0x20b
je 0x45bc4e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45bc8d
cmp dword [rax + 0x84], 0xe
ja 0x45bc5f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45bc8d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x45bc8d
cmp dword [rax + 0x74], 0xe
ja 0x45bc7e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45bc8d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x0047fd88], 0xffffffffffffffff
mov qword [0x0047fd90], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x0047dd64]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x0047dd60]
mov dword [rcx], eax
call fcn.0045ac70
cmp dword [0x0047d7b0], 0
jne 0x45bce7
lea rcx, [fcn.0045ac70]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x0045d4a8]
lea rcx, [0x0045d4a0]
call fcn.00516000
mov r11d, dword [0x0047dd5c]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x0047dd58]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x0045d498]
lea rcx, [0x0045d440]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.00458738
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x45bd73
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x45bd94
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret