joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069870
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp + 0x60]
lea r9, [rbp - 0x18]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
mov dword [rbp - 0x18], r15d
call qword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x1400af560]
lea r14, [0x1400af558]
movabs r12, 0x4d54ee85da812030
mov dword [rbp - 0x2c], r15d
add rdx, r12
mov edi, eax
cmp rdx, 1
jbe 0x1400698f8
mov rcx, qword [0x1400af558]
mov edx, eax
mov r8, qword [rcx + 0x30]
mov rcx, r14
call r8
jmp 0x1400698fd
test edi, edi
setne al
movzx eax, al
movabs r10, 0x4800144005b3
add rax, 2
mov dword [rbp - 0x30], edi
mov qword [rbp - 0x28], r14
movups xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movsd xmm1, qword [rbp - 0x20]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov r9, qword [rbx + 0x10]
cmp r9, 1
je 0x14006993b
mov eax, dword [rbx]
mov r8d, eax
jmp 0x14006996b
mov rcx, qword [rbx + 8]
mov rax, r10
mov r8d, dword [rbx]
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x40
jne 0x1400699aa
mov rcx, qword [0x1400af560]
add rcx, r12
mov dword [rbp - 0x2c], r15d
cmp rcx, 1
jbe 0x14006999f
mov rax, qword [0x1400af558]
mov edx, 0x2746
mov rcx, r14
call qword [rax + 0x30]
mov dword [rbp - 0x30], 0x2746
jmp 0x140069a17
mov al, 1
mov dword [rbp - 0x30], 0x2746
jmp 0x140069a17
cmp r9, 1
jne 0x1400699dd
mov rcx, qword [rbx + 8]
mov rax, r10
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add r8d, eax
cmp r8d, 0x4d2
jne 0x140069a37
mov rcx, qword [0x1400af560]
add rcx, r12
mov dword [rbp - 0x2c], r15d
cmp rcx, 1
jbe 0x140069a0e
mov rax, qword [0x1400af558]
mov edx, 0x274d
mov rcx, r14
call qword [rax + 0x30]
jmp 0x140069a10
mov al, 1
mov dword [rbp - 0x30], 0x274d
movzx eax, al
mov qword [rbp - 0x28], r14
add rax, 2
movups xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movsd xmm1, qword [rbp - 0x20]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
test esi, esi
je 0x140069a42
mov eax, 0xffffffff
jmp 0x140069a59
mov eax, dword [rbp - 0x18]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbp - 0x20], r15
movsd xmm0, qword [rbp - 0x20]
movsd qword [rbx + 0x10], xmm0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14007fe40
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140078090
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x200
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x1400b13b0], eax
inc eax
cmp eax, 1
jne 0x1400780dd
lea ecx, [rax + 1]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1400b13b4], eax
test bl, bl
je 0x140078181
xor ebx, ebx
lock xadd dword [0x1400b13b4], ebx
test ebx, ebx
je 0x140078181
movabs rcx, 0x4d54ee85da812030
mov qword [rsp + 0x210], rsi
add rcx, qword [0x1400af560]
lea rsi, [0x1400af558]
mov dword [rsp + 0x3c], 0
cmp rcx, 1
jbe 0x140078136
mov rax, qword [0x1400af558]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140078138
mov al, 1
lea rcx, str.C:Users_ntoskrnlDesktopSDK_boost_asio_182_0_boost_asiodetailimplwinsock_init.ipp
movzx eax, al
add rax, 2
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], rsi
lea rcx, str.throw_on_error
mov rsi, qword [rsp + 0x210]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 0x48
mov dword [rsp + 0x34], 0x1a
test al, 1
jne 0x1400781a5
mov rax, rdi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14007fe40
mov rbx, qword [rsp + 0x218]
add rsp, 0x200
pop rdi
ret
lea r8, [rsp + 0x20]
lea rdx, str.winsock
lea rcx, [rsp + 0x38]
call fcn.140067760
int3

Function at 0x140078d10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rdi, r9
mov rcx, qword [rcx + 8]
mov rbp, rdx
cmp rcx, 0xffffffffffffffff
jne 0x140078da8
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x24], 0
add rcx, qword [0x1400af560]
lea rbx, [0x1400af558]
cmp rcx, 1
jbe 0x140078d78
mov rax, qword [0x1400af558]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140078d7a
mov al, 1
movzx eax, al
mov dword [rsp + 0x20], 0x2719
add rax, 2
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
jmp 0x140078dd7
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, eax
mov rcx, rdi
shr edx, 0x1f
mov ebx, eax
call fcn.140069320
test ebx, ebx
js 0x140078dd7
or byte [rsi + 0x10], 2
movups xmm0, xmmword [rdi]
mov rax, rbp
movups xmmword [rbp], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rbp + 0x10], xmm1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007fe40
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007b1a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xor edi, edi
mov qword [rbp - 0x49], rdi
mov rbx, qword [rcx + 0x18]
mov eax, edi
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x14007b1ee
mov rcx, rbx
call fcn.140068910
jmp 0x14007b2d1
mov dword [rbp + 0x27], edi
mov qword [rbp + 0x2f], rdi
mov qword [rbp + 0x37], rdi
lea rcx, [rbp + 0x2f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
xor eax, eax
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rax
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x39], rax
mov ecx, dword [0x1400b13bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x41]
mov ecx, dword [0x1400b13bc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140068b80
test rax, rax
je 0x14007b295
nop dword [rax]
nop word [rax + rax]
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140068b80
test rax, rax
jne 0x14007b280
mov rdx, qword [rbp - 0x31]
mov ecx, dword [0x1400b13bc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rbp - 0x29]
mov edi, 0xa
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14007b2bd
call fcn.1400805e0
add rbx, 8
sub rdi, 1
jne 0x14007b2b0
lea rcx, [rbp + 0x2f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14007fe40
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14007da20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14007da81
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14007da40
mov ecx, dword [r9]
jmp 0x14007db68
cmp ecx, 0x4e0
jb 0x14007db68
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14007daa0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14007daf0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14007f8c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14007f8ef
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x14007f8e7
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14007f938
mov ecx, dword [0x1400b13bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007f928
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007f928
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x14007f943
inc ecx
inc rax
cmp rax, 2
jl 0x14007f916
mov rcx, rbx
call fcn.1400805e0
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140080bdc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140080c26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140080c26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140080c26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140080c26
cmp dword [rcx + 0x84], 0xe
jbe 0x140080c26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140080c28
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rdx + 8]
mov rbx, rdx
mov byte [rsp + 0x40], 0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edx, eax
lea rcx, str.Injecting_to_PID:__i
call fcn.140001010
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, rax
mov rdi, rax
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor esi, esi
lea r8, [rsp + 0x40]
mov rdx, rax
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rbx, rax
lea r9d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], rsi
mov r9, rbx
mov dword [rsp + 0x28], esi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001160
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400016f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebp, ebp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140001883
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov edi, 0xffffffff
mov edx, edi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x14000187d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x1400043a0]
xor edx, edx
lea r8d, [rbp + 1]
lea rcx, [0x1400043b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000187d
lea ecx, [rbp + 0x18]
call fcn.1400020c8
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400017db
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400018b3
jmp 0x1400017de
mov rbx, rbp
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x1400018a8
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov esi, eax
lock xadd dword [rbx + 0x10], edi
cmp edi, 1
jne 0x140001859
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000183a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000184c
call fcn.1400020c0
mov qword [rbx + 8], rbp
mov edx, 0x18
mov rcx, rbx
call fcn.1400020c0
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
js 0x14000187d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x140001885
call qword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400020a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x8007000e
call fcn.140001f00
nop
mov ecx, 0x8007000e
call fcn.140001f00
int3
Function at 0x1400018d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea ecx, [rdi + 0x20]
call fcn.1400020c8
mov rcx, rax
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [0x140004580]
movdqu xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [0x140004510]
movups xmmword [rax], xmm1
movzx eax, word [0x140004520]
mov word [rcx + 0x10], ax
mov byte [rcx + 0x12], dil
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1400012a0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14000198e
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001989
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001989
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020c0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
lea rcx, [0x140004528]
call fcn.140001010
call fcn.1400016f0
test al, al
je 0x1400019d5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b40
mov rcx, rax
lea rdx, [0x140001cf0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001a78
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x1400018c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140001a22
lea rcx, [0x140004558]
call fcn.140001010
lea edi, [rbx + 1]
jmp 0x140001a78
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, edi
nop dword [rax + rax]
test bl, 1
je 0x140001a53
mov edx, ebx
lea rcx, [0x1400044e8]
call fcn.140001010
inc ebx
cmp ebx, 0x3e8
jl 0x140001a40
mov ebx, edi
nop
mov edx, ebx
lea rcx, [0x140004568]
call fcn.140001010
inc ebx
cmp ebx, 0x1f4
jl 0x140001a60
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140001ab8
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ab3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ab3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020c0
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400020a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140002a80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002aca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002aca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002aca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002aca
cmp dword [rcx + 0x84], 0xe
jbe 0x140002aca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002acc
xor al, al
add rsp, 0x28
ret
Function at 0x1400067e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r14, rcx
mov r13, rdx
mov r12, r8
test r8, r8
js 0x1400068d0
lea rdi, [rsp + 0x20]
mov rdx, r8
mov rcx, rdi
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
test rdx, rdx
jle 0x140006920
mov rax, qword [rsp + 0x38]
mov r9, r13
mov r8, r12
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
mov r15, rax
cmp r12, rax
je 0x140006862
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x1400068f0
mov rcx, qword [0x14003b2b0]
call sym.__emutls_get_address
cmp byte [rax], 0
mov rbx, rax
jne 0x1400068ae
mov rcx, r13
call sym.fgetc
mov rdx, r13
mov ecx, eax
mov esi, eax
call sym.ungetc
cmp byte [rbx], 0
jne 0x1400068ae
test esi, esi
jns 0x140006930
cmp r12, r15
jle 0x1400068ae
test r15, r15
js 0x140006900
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.setLengthStrV2
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r12
call sym.raiseRangeErrorI
jmp 0x1400068ae
mov rcx, r13
call sym.checkErr__stdZsyncio_u162.part.0
jmp 0x140006862
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r15
call sym.raiseRangeErrorI
jmp 0x1400068ae
sub rdx, 1
xor ecx, ecx
call sym.raiseIndexError2
jmp 0x1400068ae
mov rdx, r13
mov rcx, rdi
call sym.readAllBuffer__stdZsyncio_u511
cmp byte [rbx], 0
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
jne 0x14000698f
lea rcx, [rsp + 0x30]
mov rdx, rsi
call sym.prepareAdd
test rsi, rsi
jle 0x14000698f
mov r8, rsi
add r8, 1
jo 0x1400069b1
test r8, r8
js 0x1400069c0
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea rcx, [rdx + rax + 8]
lea rdx, [r12 + 8]
call sym.memcpy
add rsi, qword [rsp + 0x30]
jo 0x1400069b1
mov qword [rsp + 0x30], rsi
test r12, r12
je 0x1400068ae
test byte [r12 + 7], 0x40
jne 0x1400068ae
mov rcx, r12
call sym.deallocShared
jmp 0x1400068ae
call sym.raiseOverflow
jmp 0x14000698f
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call sym.raiseRangeErrorI
jmp 0x14000698f

Function at 0x140006ed0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov r13, rdx
call sym.strlen
mov rcx, r13
mov r9, r12
mov edx, 1
mov r8, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x14000de20
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush
Function at 0x14000de70
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov rax, qword [0x140044170]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x14000df20
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000df00
call sym.strlen
lea r13, [rsp + 0x20]
mov rdx, r12
mov rcx, r13
mov r8, rax
call sym.toNimStr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140044170]
test r12, r12
je 0x14000ded9
test byte [r12 + 7], 0x40
je 0x14000df58
lea rcx, [0x140037380]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000df78
add rsp, 0x40
pop rbx
pop r12
pop r13
ret
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rax
jmp 0x14000ded9
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sym.fwrite
mov rcx, r13
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x1400373a0]
call sym.__emutls_get_address
mov rdx, r12
mov rcx, rax
call sym.rawDealloc__system_u6951
jmp 0x14000ded9
mov byte [rax], 0
lea rcx, [0x1400372c0]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u169

Function at 0x14000f570
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x140044140]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14000f5ff
lea rcx, [0x140037380]
xor r14d, r14d
lea r12, [rsp + 0x20]
call sym.__emutls_get_address
mov rbp, qword [sym.__acrt_iob_func]
mov rdi, rax
jmp 0x14000f5cd
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x14000f606
mov ecx, 1
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8909
cmp byte [rdi], 0
je 0x14000f5c0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.__acrt_iob_func]
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400384e1]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001a3a0
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [0x140038ffe]
mov rax, qword [rcx + 8]
add rax, 8
cmp qword [rcx], 0
cmovne rdx, rax
mov rcx, rdx
call sym.system
mov rcx, qword [0x14003b2b0]
movsxd rbx, eax
call sym.__emutls_get_address
cmp byte [rax], 0
mov eax, 0
cmove rax, rbx
add rsp, 0x20
pop rbx
ret