joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402b9d70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rax, qword [rsp + 0xf0]
mov rsi, rdx
mov rdi, rcx
mov rdx, rax
mov ecx, 0xb0
mov qword [rsp + 0x50], rax
mov r12, r8
mov r13d, r9d
call fcn.14027f3d0
mov r14, qword [rsi + 0x10]
mov rbp, qword [rsi + 0x18]
mov qword [rsp + 0x58], rax
mov rbx, rax
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], rbp
test rbp, rbp
je 0x1402b9dd0
mov rcx, rbp
call fcn.1403726a0
xor r9d, r9d
lea rax, [0x1402ace70]
mov r15b, byte [rsi + 8]
mov rcx, rbx
mov qword [rbx + 0x20], r9
mov qword [rbx + 0x28], rax
call fcn.1402a05e0
mov byte [rbx + 0x34], r15b
mov qword [rbx + 0x38], r14
mov qword [rbx + 0x40], rbp
test rbp, rbp
je 0x1402b9e07
mov rcx, rbp
call fcn.1403726a0
movups xmm0, xmmword [r12]
lea rcx, [rbx + 0x58]
lea rbp, [rsp + 0x50]
mov rdx, qword [rsp + 0xf0]
movups xmmword [rbx + 0x48], xmm0
call fcn.140382650
mov rdx, qword [rsp + 0xf8]
lea rcx, [rbx + 0x78]
call fcn.14029b3c0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x60], rbx
call fcn.140356b10
mov rax, qword [r12 + 8]
mov rdx, qword [r12]
test byte [rsi + 8], 0x10
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x78], rax
je 0x1402b9e80
test rax, rax
jne 0x1402b9e80
call fcn.1402a0ca0
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
jmp 0x1402b9f10
call fcn.1402a0ca0
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
jne 0x1402b9e9d
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, 0x2719
jmp 0x1402b9f10
xor edx, edx
xor r8d, r8d
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x4c], r13d
mov dword [rsp + 0x48], edx
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x30], r8
mov r8d, 1
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov r8d, eax
cmp eax, 0x40
je 0x1402b9ef4
cmp eax, 0x4d2
jne 0x1402b9efa
mov r8d, 0x274d
jmp 0x1402b9efa
mov r8d, 0x2746
mov rcx, qword [rdi + 8]
test esi, esi
je 0x1402b9f1a
cmp r8d, 0x3e5
je 0x1402b9f1a
mov r9d, dword [rsp + 0x48]
mov rdx, rbx
call fcn.1402a0d20
jmp 0x1402b9f22
mov rdx, rbx
call fcn.1402a0a10
xor eax, eax
mov rcx, rbp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
call fcn.1402ad030
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1402b9fc0
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r14d, dword [rsp + 0xb8]
mov r13d, dword [rsp + 0xb0]
mov rsi, qword [rsp + 0xc0]
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov r12, rdx
mov rdi, r8
mov rbp, r9
call fcn.1402a0ca0
test r14b, r14b
je 0x1402ba00c
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
jmp 0x1402ba023
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
jne 0x1402ba039
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.1402a0d20
xor eax, eax
xor edx, edx
mov r8d, ebp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rdx
lea r9, [rsp + 0x4c]
mov rdx, rdi
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov r8d, eax
cmp eax, 0x4d2
jne 0x1402ba079
mov r8d, 0x274d
mov rcx, qword [rbx + 8]
test edi, edi
je 0x1402ba099
cmp r8d, 0x3e5
je 0x1402ba099
mov r9d, dword [rsp + 0x4c]
mov rdx, rsi
call fcn.1402a0d20
jmp 0x1402ba0a2
mov rdx, rsi
call fcn.1402a0a10
nop
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1402ba220
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r14d, dword [rsp + 0xb8]
mov r13d, dword [rsp + 0xb0]
mov rsi, qword [rsp + 0xc0]
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov r12, rdx
mov rdi, r8
mov rbp, r9
call fcn.1402a0ca0
test r14b, r14b
je 0x1402ba26c
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
jmp 0x1402ba283
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
jne 0x1402ba299
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.1402a0d20
xor eax, eax
xor edx, edx
mov r8d, ebp
mov dword [rsp + 0x4c], r13d
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rdx
mov rdx, rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov r8d, eax
cmp eax, 0x40
je 0x1402ba2ea
cmp eax, 0x4d2
jne 0x1402ba2f0
mov r8d, 0x274d
jmp 0x1402ba2f0
mov r8d, 0x2746
mov rcx, qword [rbx + 8]
test edi, edi
je 0x1402ba310
cmp r8d, 0x3e5
je 0x1402ba310
mov r9d, dword [rsp + 0x48]
mov rdx, rsi
call fcn.1402a0d20
jmp 0x1402ba319
mov rdx, rsi
call fcn.1402a0a10
nop
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1402ba520
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov r11d, dword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xb8]
mov rsi, rcx
mov rax, rdx
mov rcx, qword [rcx + 8]
mov rdx, r8
mov r8, r9
mov r9, qword [rsp + 0xa0]
lock inc dword [rcx + 0x30]
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
jne 0x1402ba580
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
jmp fcn.1402a0d20
xor eax, eax
mov dword [rsp + 0x5c], r11d
xor r11d, r11d
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], r9
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
mov edi, eax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov r8d, eax
cmp eax, 0x4d2
jne 0x1402ba5cf
mov r8d, 0x274d
mov rsi, qword [rsi + 8]
test edi, edi
je 0x1402ba5f2
cmp r8d, 0x3e5
je 0x1402ba5f2
mov r9d, dword [rsp + 0x58]
mov rdx, rbx
mov rcx, rsi
call fcn.1402a0d20
jmp 0x1402ba627
xor eax, eax
mov edx, 1
lock cmpxchg dword [rbx + 0x30], edx
dec eax
jne 0x1402ba627
xor edx, edx
mov rcx, qword [rsi + 0x28]
mov r9, rbx
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1402ba627
mov rdx, rbx
mov rcx, rsi
call fcn.1402a17f0
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret

Function at 0x1402bc100
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov edx, 0x3e3
lea rsi, [rsp + 0x28]
mov rbx, rcx
mov rcx, rsi
call fcn.1402c59f0
lea rcx, [rbx + 8]
mov rdx, rsi
call fcn.1402c7480
test al, al
je 0x1402bc15b
mov rax, qword [rbx]
xor edx, edx
lea rcx, [rax + 0x640]
call fcn.140370030
mov rax, qword [rbx]
xor edx, edx
lea rcx, [rax + 0x648]
call fcn.140370080
mov rcx, qword [rbx]
add rsp, 0x48
pop rbx
pop rsi
jmp fcn.140232e70
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x1402bdb20
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rcx + 8]
call fcn.1402ee430
mov rcx, qword [rbx]
test al, al
je 0x1402bdb73
add rcx, 0x640
xor edx, edx
call fcn.140370030
mov rax, qword [rbx]
xor edx, edx
lea rcx, [rax + 0x648]
call fcn.140370080
mov rax, qword [rbx]
lea rcx, [rax + 0xa8]
call fcn.14027ac80
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp fcn.140232e70
add rsp, 0x20
pop rbx
jmp fcn.140235ce0
Function at 0x1402dad80
Capabilities:
Encrypt data using curve25519

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, r8
mov qword [rsp + 0x28], r9
mov rbp, rcx
mov rsi, rdx
call fcn.14008b530
mov edx, 9
mov rcx, rax
mov rbx, rax
call fcn.14008ba60
movups xmm1, xmmword [rsi + 0x10]
movups xmm0, xmmword [rsi]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x40], xmm1
mov al, byte [rsp + 0x4f]
movaps xmmword [rsp + 0x30], xmm0
and eax, 0x7f
and byte [rsp + 0x30], 0xf8
or eax, 0x40
mov byte [rsp + 0x4f], al
call fcn.1402dbd70
mov r9, qword [rsp + 0x28]
mov rdx, rbx
mov rcx, rbp
mov r8, rax
mov rdi, rax
call fcn.1402dc140
mov r9d, 0x20
mov r8, r12
mov rcx, rbp
mov rdx, rax
mov rsi, rax
call fcn.1402dbe30
mov rcx, rbx
call fcn.14008b4b0
mov rcx, rdi
call fcn.14008b4b0
mov rcx, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14008b4b0

Function at 0x1402dc460
Capabilities:
Encrypt data using curve25519

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, r9
mov r9, qword [rsp + 0xa0]
mov rbx, r8
mov rbp, rcx
mov rcx, rdx
mov qword [rsp + 0x28], r9
call fcn.1402dbd70
movups xmm1, xmmword [rbx + 0x10]
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x30]
mov rdi, rax
movaps xmmword [rsp + 0x40], xmm1
mov al, byte [rsp + 0x4f]
movaps xmmword [rsp + 0x30], xmm0
and eax, 0x7f
and byte [rsp + 0x30], 0xf8
or eax, 0x40
mov byte [rsp + 0x4f], al
call fcn.1402dbd70
mov r9, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rbp
mov r8, rax
mov rsi, rax
call fcn.1402dc140
mov r9d, 0x20
mov r8, r12
mov rcx, rbp
mov rdx, rax
mov rbx, rax
call fcn.1402dbe30
mov rcx, rdi
call fcn.14008b4b0
mov rcx, rsi
call fcn.14008b4b0
mov rcx, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14008b4b0

Function at 0x1402e61c0
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], edx
lea rbx, [rsp + 0x20]
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r8
jne 0x1402e61fd
mov edx, 0x2719
mov rcx, rbx
call fcn.1402c6140
jmp 0x1402e6244
xor eax, eax
mov r8, rdi
mov edx, 0x4004667f
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
mov rcx, rbx
shr eax, 0x1f
mov edx, eax
call fcn.140285ad0
mov rcx, rbx
call fcn.1402ee400
cmp eax, 0x19
jne 0x1402e6238
mov edx, 0x2736
mov rcx, rbx
call fcn.1402c6140
mov rcx, rbx
call fcn.1402ee430
test al, al
je 0x1402e6248
xor esi, esi
jmp 0x1402e624c
mov esi, dword [rsp + 0x38]
lea rax, [0x140437fe2]
lea rdx, str.available
mov r8, rdi
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], 0x2f5
call fcn.140287cc0
mov rax, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x1403542c0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140354308
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1403542da
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140368e10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140368e38
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
test eax, eax
jle 0x140368e80
cdqe
add rsi, rax
sub rbx, rax
jne 0x140368e50
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140368e8c
call rbp
cmp dword [rax], 4
je 0x140368e50
lea rcx, str.random_device_could_not_be_read
call fcn.140414230
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x1404d9c80]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov eax, dword [rax - 8]
test eax, eax
mov rax, qword [rcx + 8]
jg 0x140368ed0
mov dword [rax - 8], 1
ret
lock add dword [rax - 8], 1
ret

Function at 0x14037f5f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x9c0], 0x26f
mov r9, rcx
jbe 0x14037f609
call fcn.14037f520
mov rax, qword [r9 + 0x9c0]
lea rdx, [rax + 1]
mov eax, dword [r9 + rax*4]
mov qword [r9 + 0x9c0], rdx
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x28
ret

Function at 0x1403ba110
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x1403ba168
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x1403ba140
and edx, 7
je 0x1403ba19d
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x1403ba178
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret
Function at 0x140001466
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1e0
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
movabs rax, 0x3736353433323130
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movabs rdx, 0x6665646362613938
mov qword [rsp + 0x48], rdx
mov edx, 8
mov qword [rsp + 0x40], rax
call rsi
xor r8d, r8d
mov r9d, 0x20019
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rbp, rax
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400014e2
xor ebp, ebp
jmp 0x140001639
lea rdi, [rsp + 0xf0]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x3c
lea rbx, [rsp + 0xe0]
mov qword [rsp + 0xe0], rdx
rep stosd dword [rdi], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0xe8], rdx
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x34], 0x100
lea rdx, str.Domain
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x140001545
test eax, eax
jne 0x1400014db
lea rdi, [0x14000403a]
mov rcx, qword [rsp + 0x38]
xor r12d, r12d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
mov rdx, rdi
call sub.msvcrt.dll_strtok
mov rbx, rax
test rbx, rbx
je 0x14000157f
mov rdx, rdi
xor ecx, ecx
mov r12, rbx
call sub.msvcrt.dll_strtok
mov rbx, rax
jmp 0x140001568
test r12, r12
je 0x140001639
mov rcx, r12
lea rdi, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
lea ebx, [rax + 1]
movsxd rbx, ebx
mov rdx, rbx
call rsi
mov rdx, r12
lea r12, [rsp + 0x50]
mov rsi, rax
lea rcx, [rax + 1]
mov byte [rax], 0x2e
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rdi
call fcn.14000192a
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14000196e
mov rdx, r12
mov rcx, rdi
call fcn.1400019c3
xor eax, eax
mov dl, byte [r12 + rax]
mov rcx, rdx
shr dl, 4
and ecx, 0xf
and edx, 0xf
mov cl, byte [rsp + rcx + 0x40]
mov dl, byte [rsp + rdx + 0x40]
mov byte [rbp + rax*2 + 1], cl
mov byte [rbp + rax*2], dl
inc rax
cmp rax, 4
jne 0x1400015ea
xor eax, eax
mov ecx, 8
mov rdi, r12
mov r8d, 0x8000
rep stosd dword [rdi], eax
mov rdi, rsi
mov rcx, rbx
mov rdx, rbx
rep stosb byte [rdi], al
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbp
add rsp, 0x1e0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001682
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
movsxd rbp, edx
call fcn.140001466
mov rdx, rbp
xor ecx, ecx
mov r9d, 4
mov rsi, rax
mov r8d, 0x3000
mov rdi, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
lea rcx, [0x140003010]
mov rbx, rax
cmp edi, edx
jle 0x1400016d3
mov rax, rdx
and eax, 7
mov al, byte [rsi + rax]
xor al, byte [rcx + rdx]
mov byte [rbx + rdx], al
inc rdx
jmp 0x1400016bb
mov edx, 8
mov rcx, rsi
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
lea r9, [rsp + 0x3c]
mov r8d, 0x20
call fcn.140001650
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xor edx, edx
mov r9, rbx
mov dword [rsp + 0x20], edx
lea r8, [0x140001450]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001730
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
xor r8d, r8d
mov rax, rcx
mov r9, rdx
movzx ecx, byte [r9 + r8]
movzx r10d, byte [r9 + r8 + 1]
lea rdx, [rsp + 0x20]
shl r10d, 0x10
shl ecx, 0x18
or ecx, r10d
movzx r10d, byte [r9 + r8 + 3]
or ecx, r10d
movzx r10d, byte [r9 + r8 + 2]
shl r10d, 8
or ecx, r10d
mov dword [rsp + r8 + 0x20], ecx
add r8, 4
cmp r8, 0x40
jne 0x14000174c
lea r10, [rsp + 0xe0]
mov r8d, dword [rdx + 0x38]
mov r9d, dword [rdx + 4]
add rdx, 4
mov ecx, r8d
mov r11d, r8d
shr r8d, 0xa
rol r11d, 0xd
rol ecx, 0xf
xor ecx, r11d
mov r11d, r9d
xor ecx, r8d
mov r8d, dword [rdx - 4]
add r8d, dword [rdx + 0x20]
rol r11d, 0xe
add ecx, r8d
mov r8d, r9d
shr r9d, 3
ror r8d, 7
xor r8d, r11d
xor r8d, r9d
add ecx, r8d
mov dword [rdx + 0x3c], ecx
cmp r10, rdx
jne 0x140001793
mov ebx, dword [rax + 0x54]
mov edi, dword [rax + 0x58]
lea r14, [0x140004040]
mov r12d, dword [rax + 0x50]
mov dword [rsp + 4], ebx
mov ebx, dword [rax + 0x5c]
mov dword [rsp + 8], edi
mov edi, dword [rax + 0x60]
mov r9d, r12d
mov r10d, dword [rsp + 8]
mov r11d, dword [rsp + 4]
mov dword [rsp + 0xc], ebx
mov ebx, dword [rax + 0x64]
mov r13d, dword [rsp + 0xc]
mov dword [rsp + 0x10], edi
mov edi, dword [rax + 0x68]
mov r8d, dword [rsp + 0x10]
mov dword [rsp + 0x14], ebx
mov ebx, dword [rax + 0x6c]
mov dword [rsp + 0x18], edi
mov ebp, dword [rsp + 0x14]
mov dword [rsp + 0x1c], ebx
mov esi, ebx
xor ebx, ebx
mov ecx, r8d
mov edx, r8d
mov r15d, r8d
ror ecx, 6
ror edx, 0xb
and r15d, ebp
xor edx, ecx
mov ecx, r8d
rol ecx, 7
xor edx, ecx
mov ecx, dword [rsp + rbx + 0x20]
add ecx, dword [r14 + rbx]
add rbx, 4
add edx, ecx
mov ecx, r8d
not ecx
and ecx, edi
xor ecx, r15d
mov r15d, r11d
add edx, ecx
mov ecx, r9d
and r15d, r10d
add edx, esi
mov esi, r9d
ror ecx, 2
ror esi, 0xd
xor esi, ecx
mov ecx, r9d
rol ecx, 0xa
xor esi, ecx
mov ecx, r11d
xor ecx, r10d
and ecx, r9d
xor ecx, r15d
lea r15d, [rdx + r13]
mov r13d, r10d
add ecx, esi
mov esi, edi
add ecx, edx
cmp rbx, 0x100
je 0x1400018cb
mov edi, ebp
mov r10d, r11d
mov ebp, r8d
mov r11d, r9d
mov r8d, r15d
mov r9d, ecx
jmp 0x14000183f
mov edx, dword [rsp + 4]
add r12d, ecx
mov dword [rax + 0x50], r12d
add edx, r9d
mov dword [rax + 0x54], edx
mov edx, dword [rsp + 8]
add edx, r11d
mov dword [rax + 0x58], edx
mov edx, dword [rsp + 0xc]
add edx, r10d
mov dword [rax + 0x5c], edx
mov edx, dword [rsp + 0x10]
add edx, r15d
mov dword [rax + 0x60], edx
mov edx, dword [rsp + 0x14]
add edx, r8d
mov dword [rax + 0x64], edx
mov edx, dword [rsp + 0x18]
add edx, ebp
mov dword [rax + 0x68], edx
mov edx, dword [rsp + 0x1c]
add edx, edi
mov dword [rax + 0x6c], edx
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001aed
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov ecx, eax
call sub.msvcrt.dll_srand
call fcn.140001ab0
test eax, eax
je 0x140001cb0
mov rax, qword [0x140004620]
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
mov edx, 0x800
mov r13, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, dword [rax]
call r13
mov r8d, 0x800
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov edx, 0x80000000
xor r8d, r8d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
test rax, rax
je 0x140001cb0
xor edx, edx
mov rcx, rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
mov r12d, eax
mov edx, 4
call r13
xor ecx, ecx
mov r14, qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x5c], ecx
mov rbx, rax
mov eax, ebp
mov qword [rsp + 0x48], rax
lea eax, [r12 - 4]
cmp edi, eax
jae 0x140001c7c
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r15, [rsp + 0x5c]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rdx
mov r9, r15
mov r8d, 4
mov rdx, rbx
call r14
cmp dword [rbx], 0x465453
jne 0x140001c74
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rbx
mov r8d, 0x8000
mov edx, 4
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
mov rdx, qword [rsp + 0x48]
mov r9d, 4
mov r8d, 0x3000
call r13
mov r9, r15
mov r8d, ebp
mov rcx, rsi
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x20], rax
mov rdx, rbx
call r14
cmp dword [rsp + 0x5c], ebp
je 0x140001c74
call qword [sym.imp.KERNEL32.dll_DebugBreak]
add edi, 4
jmp 0x140001bc9
mov edx, ebp
mov rcx, rbx
call fcn.140001682
mov rcx, qword [rsp + 0x40]
mov r8d, 0x8000
mov edx, 0x800
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rsi
mov rdx, qword [rsp + 0x48]
mov r8d, 0x8000
mov rcx, rbx
call rsi
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140001fa0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002dc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002dc0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]