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

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rsi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x14000aa20
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.140008430
jmp 0x14000aab8
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14000aa40
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
call fcn.140008430
jmp 0x14000aab8
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov r8d, r11d
mov eax, dword [rsp + 0x90]
mov rdx, r10
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x14000aaac
cmp eax, 0x3e5
je 0x14000aaac
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.140008430
jmp 0x14000aab8
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.1400083a0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400581c0
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x14000aad0
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, qword [rsp + 0xf8]
mov r14, r9
mov rdi, qword [rsp + 0x108]
mov r15, rdx
mov rax, qword [rcx + 8]
mov rsi, rcx
lock inc dword [rax + 0x30]
cmp qword [rdx], 0xffffffffffffffff
jne 0x14000ab30
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
call fcn.140008430
jmp 0x14000aca2
test r8b, r8b
je 0x14000ab4d
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 1]
call fcn.140008430
jmp 0x14000aca2
mov r8d, dword [rsp + 0xf0]
xorps xmm0, xmm0
mov edx, dword [rsp + 0xe8]
xor r9d, r9d
mov ecx, dword [rsp + 0xe0]
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], r13
xor r13d, r13d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x20], r13d
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
lea rcx, [rsp + 0x48]
mov rbx, rax
sete dl
call fcn.140008d10
cmp rbx, 0xffffffffffffffff
je 0x14000abe1
cmp dword [rsp + 0xe0], 0x17
jne 0x14000abe1
mov edx, 0x29
mov dword [rsp + 0x44], r13d
lea r9, [rsp + 0x44]
mov dword [rsp + 0x20], 4
mov rcx, rbx
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x14000ac0e
xorps xmm0, xmm0
mov qword [rsp + 0x70], r13
lea r9, [rsp + 0x60]
mov byte [rsp + 0x40], r13b
mov r8b, 1
lea rdx, [rsp + 0x40]
movups xmmword [rsp + 0x60], xmm0
call fcn.140009060
mov qword [r14], rbx
cmp rbx, 0xffffffffffffffff
jne 0x14000ac2a
mov rcx, qword [rsi + 8]
lea r8, [rsp + 0x48]
mov rdx, rdi
call fcn.1400084c0
jmp 0x14000ac92
mov rcx, qword [r15]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8, r12
mov eax, dword [rsp + 0x100]
mov rdx, rbx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x44], r13d
call qword [sym.imp.MSWSOCK.dll_AcceptEx]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14000ac86
cmp eax, 0x3e5
je 0x14000ac86
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call fcn.140008430
jmp 0x14000ac92
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.1400083a0
mov rbx, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400581c0
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14000acc0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x130]
mov r14, rcx
mov rcx, qword [r8]
xor edi, edi
mov rbp, qword [rsp + 0x140]
mov rbx, 0xffffffffffffffff
mov rsi, qword [rsp + 0x148]
mov r13d, r9d
mov qword [rsp + 0x50], rdx
mov r12, r8
mov qword [rsp + 0x48], rax
cmp rcx, rbx
je 0x14000ad4d
xorps xmm0, xmm0
mov qword [rsp + 0x88], rdi
lea r9, [rsp + 0x78]
mov byte [rsp + 0x40], dil
mov r8b, 1
lea rdx, [rsp + 0x40]
movups xmmword [rsp + 0x78], xmm0
call fcn.140009060
mov qword [r12], rbx
mov rax, qword [r14 + 8]
lock inc dword [rax + 0x30]
test rbp, rbp
je 0x14000ad7b
mov eax, edi
lock xadd dword [rbp], eax
cmp eax, 1
jne 0x14000ad7b
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, 0x3e3
mov rdx, rsi
call fcn.140008430
mov r8d, dword [rsp + 0x128]
xorps xmm0, xmm0
mov edx, dword [rsp + 0x120]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov ecx, r13d
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, rbx
lea rcx, [rsp + 0x60]
mov r15, rax
sete dl
call fcn.140008d10
cmp r15, rbx
je 0x14000adf2
cmp r13d, 0x17
jne 0x14000adef
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], edi
lea edx, [r13 + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [r13 + 4]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, r15
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x14000ae29
xorps xmm0, xmm0
mov qword [rsp + 0xa0], rdi
lea r9, [rsp + 0x90]
mov byte [rsp + 0x41], dil
mov r8b, 1
lea rdx, [rsp + 0x41]
movups xmmword [rsp + 0x90], xmm0
call fcn.140009060
mov qword [r12], rbx
cmp rbx, 0xffffffffffffffff
jne 0x14000ae49
mov rcx, qword [r14 + 8]
lea r8, [rsp + 0x60]
mov rdx, rsi
call fcn.1400084c0
jmp 0x14000aed2
mov r15, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov r8, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x38], rsi
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x5c], edi
call qword [sym.imp.MSWSOCK.dll_AcceptEx]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14000aeab
cmp eax, 0x3e5
je 0x14000aeab
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call fcn.140008430
jmp 0x14000aed2
test rbp, rbp
je 0x14000aec6
lock xadd dword [rbp], edi
cmp edi, 1
jne 0x14000aec6
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [r14 + 8]
mov rdx, rsi
call fcn.1400083a0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400581c0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140017e80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x68
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, r8
movzx edx, dx
mov r8, r9
mov rsi, rcx
xor bl, bl
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
je 0x140017f85
mov rdx, rax
mov qword [rsp + 0x60], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140017f80
mov rcx, rax
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbp
mov rcx, rsi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r15
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140017f53
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r14, qword [rsp + 0x58]
movzx eax, bl
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400581c0
add rsp, 0x68
pop r15
pop rsi
pop rbp
pop rbx
ret
movzx eax, bl
jmp 0x140017f64
movzx eax, bl
jmp 0x140017f69

Function at 0x140018930
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [rsp + 0x20]
call fcn.1400182f0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400581c0
add rsp, 0x38
ret
Function at 0x140019340
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140019362
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400193dc
mov rdi, r14
mov rcx, rbx
call fcn.14001c990
test rax, rax
jle 0x1400193b4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14005a7a0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400193cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x1400193d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140019376
sub r14, rdi
jmp 0x1400194c9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400193f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400193f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001942a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14005a7a0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400194c6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140019465
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1400194a1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14006b194
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1400194df
cmp rbp, rax
ja 0x140019471
mov r8, rdi
test rdi, rdi
je 0x1400194c6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14006b194
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x1400194c9
Function at 0x14001ade0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x200
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x1400c0040], eax
inc eax
cmp eax, 1
jne 0x14001ae2d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1400c0044], eax
test bl, bl
je 0x14001aed1
xor ebx, ebx
lock xadd dword [0x1400c0044], ebx
test ebx, ebx
je 0x14001aed1
movabs rcx, 0x4d54ee85da812030
mov qword [rsp + 0x210], rsi
add rcx, qword [0x1400b8038]
lea rsi, [0x1400b8030]
mov dword [rsp + 0x3c], 0
cmp rcx, 1
jbe 0x14001ae86
mov rax, qword [0x1400b8030]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14001ae88
mov al, 1
lea rcx, str.D:_acyber_ember_ransomwarecyber_ember_ransomwarecpp_boost_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 0x14001aef5
mov rax, rdi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400581c0
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.140006940
int3
Function at 0x140041b60
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140041bf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140041bf6
mov dword [rsp + 0x20], 0x28
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140041c1a
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400581c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.14001b2b0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140041cd0
lea rdx, [0x1400b4198]
lea rcx, [rsp + 0x50]
call fcn.14005a6cc
int3

Function at 0x1400420c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1400bed98]
mov rax, qword gs:[0x58]
mov edx, ntohl
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1400bd160], ecx
jg 0x14004219f
mov eax, ebx
cmp rbx, rax
jne 0x140042161
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x140042161
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x1400bd158]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400421e2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400581c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.14001b2b0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140041cd0
lea rdx, [0x1400b4198]
lea rcx, [rsp + 0x40]
call fcn.14005a6cc
nop
lea rcx, [0x1400bd160]
call fcn.1400583e8
cmp dword [0x1400bd160], 0xffffffff
jne 0x14004210c
lea rcx, [0x1400bd158]
call fcn.140041b60
lea rcx, [0x140088500]
call fcn.14005884c
nop
lea rcx, [0x1400bd160]
call fcn.140058388
jmp 0x14004210c
lea rdx, [0x14008b740]
lea rcx, [rsp + 0x20]
call fcn.14001b2b0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140041cd0
lea rdx, [0x1400b4198]
lea rcx, [rsp + 0x40]
call fcn.14005a6cc
int3
Function at 0x14004eec0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor ebx, ebx
mov r11, rdx
mov r9, rcx
mov r10d, ebx
cmp r8, 8
jb 0x14004ef07
mov rcx, r8
shr rcx, 3
imul rax, rcx, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r9]
add r9, 8
xor rax, qword [r11]
add r11, 8
or r10, rax
sub rcx, 1
jne 0x14004eef0
mov rdx, r10
shr rdx, 0x20
or edx, r10d
mov eax, edx
mov ecx, edx
shr eax, 8
or eax, edx
shr ecx, 0x10
and eax, 0xff00
or eax, ecx
movzx ecx, dl
shr eax, 8
or eax, ecx
test r8, r8
je 0x14004f007
cmp r8, 8
jb 0x14004efe3
mov rdx, r8
lea r10, [r11 + 4]
and rdx, 0xfffffffffffffff8
mov rcx, r9
sub rcx, r11
xorps xmm4, xmm4
xorps xmm3, xmm3
nop word [rax + rax]
movd xmm2, dword [rcx + r10 - 4]
xorps xmm0, xmm0
movd xmm1, dword [r10 - 4]
lea r10, [r10 + 8]
punpcklbw xmm2, xmm0
add rbx, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [r10 - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + r10 - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp rbx, rdx
jb 0x14004ef60
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or eax, ecx
cmp rbx, r8
jae 0x14004f007
sub r9, r11
lea r10, [rbx + r11]
sub r8, rbx
nop dword [rax]
movzx edx, byte [r10 + r9]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
xor edx, ecx
or eax, edx
sub r8, 1
jne 0x14004eff0
mov rbx, qword [rsp + 8]
test eax, eax
sete al
ret
Function at 0x14004f020
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14004f174
cmp r9, 4
jb 0x14004f06a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14004f050
xor r11d, r11d
test r9, r9
je 0x14004f174
cmp r9, 0x40
jb 0x14004f153
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14004f09c
cmp rdx, r8
jae 0x14004f153
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14004f0b1
cmp rdx, r10
jae 0x14004f153
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp], rdi
mov rdi, r9
and rdi, 0xffffffffffffffc0
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rdi
jb 0x14004f0e0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
cmp r11, r9
jae 0x14004f174
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14004f160
add rsp, 8
ret
Function at 0x1400568d8
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1400568f1
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140067634
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14006766b
call fcn.140068538
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140067c24
xor eax, eax
jmp 0x1400676f9
mov rdx, r9
mov rcx, r8
call fcn.1400675d0
mov rbx, rax
test rax, rax
je 0x1400676f6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400674fc]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400676e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400684ac
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400676ca
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400676d9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140076130
jmp 0x1400676f6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400676f3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140070ebc
Capabilities:
Parse pe header

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

Function at 0x1400743f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007440a
mov al, 1
jmp 0x14007446a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007441b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140074468
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007d294
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140074468
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140074468
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140074468
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007446a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007887c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140058dc0
sub rsp, rax
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400742d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400788cb
mov rax, rbp
jmp 0x1400789d3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xbf8e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400797c8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbf8e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400789cf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400789cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400797c8
test rax, rax
js 0x1400789cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400789cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400789c1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400789c1
cmp byte [rcx], 0xd
jne 0x1400789a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400789b6
cmp byte [rcx + 1], 0xa
jne 0x1400789b6
inc rcx
jmp 0x1400789b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb7770]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140078989
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400789d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400581c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret