joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b1510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.1400b34c0
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, r14
jne 0x1400b154e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x1400b1574
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.1400a4d90
mov rdi, qword [rbp - 0x10]
cmp rdi, r14
jne 0x1400b158d
lea rcx, [rbp - 8]
call fcn.140069970
mov qword [rsi], r14
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rbx, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400b15af
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
jmp 0x1400b1580
mov qword [rsi], r14
test rdi, rdi
je 0x1400b1580
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140008a40

Function at 0x1400b2e40
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x1400b2f11
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400b2f80]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400b2f03
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x1400b2ec7
mov rcx, rbx
call rax
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1400b2edc
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140008a40
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.140008a40
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400dc220
ud2
Function at 0x1400b7a70
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400b7b05
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x1400b7b44
cmp dword [rbp], 0
je 0x1400b7b28
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400b7b67
mov edi, eax
mov rax, qword [0x14047c038]
mov rax, qword [0x1404781e0]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1404781e0], rsi
jne 0x1400b7ae0
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400b7b39
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x1400b7ba9
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400b7b2d
mov edi, dword [rbp + 4]
jmp 0x1400b7b39
mov edi, dword [rsi + 0x18]
jmp 0x1400b7b37
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rdx, [0x1404391c0]
lea r9, str.library_std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 4]
lea r8, [rbp - 0x38]
call fcn.140072070
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.1400e8fc0
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.1400720f0
int3
Function at 0x1400b7e30
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov eax, dword [0x1404781c0]
cmp eax, 4
jne 0x1400b7f5e
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x1400b7f84
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.1400e6620
cmp qword [rbp + 0x158], 0
je 0x1400b7ecf
lea rax, str.XC_
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400b7f4f
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400b7f30
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400b7f48
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.14009f2e0
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x1400b7e85
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.1400a00b0
jmp 0x1400b7f4f
Function at 0x1400b83e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], pe_nt_image_headers64
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400b8469
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x1400b8478
cmp ecx, 2
jne 0x1400b84b6
cmp eax, 0xf
jbe 0x1400b84d0
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x1400b84c6
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400b84bd
cmp eax, 0x1b
jbe 0x1400b84e8
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x1400b84c6
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x140439eb0]
mov edx, 0x39
call fcn.1400e9040
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x140439f08]
mov edx, 0x3a
call fcn.1400e9040
int3
Function at 0x1400b89a0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf0
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp + 0x18], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], 7
mov qword [rbp + 0x34], 0
mov word [rbp + 0x3c], 0
mov byte [rbp + 0x38], 1
lea r8, [rbp + 0x18]
mov rcx, rdx
mov rdx, rax
call fcn.1400a51d0
mov rdi, rdx
test rax, rax
je 0x1400b8a27
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
call fcn.140069970
mov qword [rsi], 0
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0x18]
mov rdx, rdi
call fcn.1400a5470
cmp dword [rbp + 0x18], 2
jne 0x1400b8a4b
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
jmp 0x1400b8a82
movups xmm0, xmmword [rbp + 0x18]
movups xmm1, xmmword [rbp + 0x28]
movups xmm2, xmmword [rbp + 0x38]
movups xmm3, xmmword [rbp + 0x48]
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x10], rax
movups xmm0, xmmword [rbp + 0x58]
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x30], xmm1
cmp qword [rbp - 0x40], 2
jne 0x1400b8aab
lea rcx, [rbp - 0x38]
call fcn.140069970
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rbp - 8]
test rdi, rdi
je 0x1400b8af9
mov qword [rbp - 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400b8b75
mov rbx, qword [rbp - 0x40]
jmp 0x1400b8afb
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x1400b8b64
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x1400b8b64
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1400b8b9e
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400b8b9e
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x18], 1
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x20], rax
call fcn.140069970
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x1400b8a15
Function at 0x1400bd9b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x140101248]
test esi, esi
je 0x1400bda72
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400bda67
je 0x1400bda04
xor ebx, ebx
test rdi, rdi
je 0x1400bda08
mov r14, qword [rdi]
mov qword [rdi], 0
test r14, r14
cmovne ebx, dword [rdi + 0x10]
cmovne r14, qword [rdi + 8]
jmp 0x1400bda0b
xor eax, eax
jmp 0x1400bda67
xor r14d, r14d
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x1400bda93
mov qword [rax], r14
mov byte [rax + 8], bl
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400bda64
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140008a40
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x140101230]
call fcn.1400b7a70
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400bd9e3
jmp 0x1400bda67
mov ecx, 8
mov edx, 0x18
call fcn.1400dc220
int3

Function at 0x1400bdab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x140101268]
test esi, esi
je 0x1400bdae6
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400bdb01
add rax, 4
jmp 0x1400bdb7d
lea rcx, str.0w_v_
call fcn.1400b7a70
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400bdadd
je 0x1400bdb7b
xor r14d, r14d
test rdi, rdi
je 0x1400bdb1c
cmp byte [rdi], 0
mov byte [rdi], 0
movzx eax, byte [rdi + 1]
cmove eax, r14d
mov r14d, eax
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 4
call fcn.140008a30
test rax, rax
je 0x1400bdb8a
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r15, rax
mov byte [rbx + 4], r14b
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400bdb76
mov edx, 8
mov r8d, 4
mov rcx, rdi
call fcn.140008a40
mov rax, r15
jmp 0x1400bdb7d
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov ecx, 4
mov edx, 8
call fcn.1400dc220
int3
Function at 0x1400bdba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x1401012a8]
test esi, esi
je 0x1400bdc72
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400bdc69
je 0x1400bdbed
test rdi, rdi
je 0x1400bdbf1
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400bdbf3
mov rbx, qword [rdi + 8]
jmp 0x1400bdbf3
xor eax, eax
jmp 0x1400bdc69
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x1400bdc93
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400bdc66
mov rax, qword [rdi]
test rax, rax
je 0x1400bdc53
lock dec qword [rax]
jne 0x1400bdc53
mov rcx, rdi
call fcn.140078690
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140008a40
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140101290]
call fcn.1400b7a70
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400bdbd1
jmp 0x1400bdc69
mov ecx, 8
mov edx, 0x10
call fcn.1400dc220
ud2

Function at 0x1400bdcd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x1401012e8]
test esi, esi
je 0x1400bdd81
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400bdd78
je 0x1400bdd19
test rdi, rdi
je 0x1400bdd1d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400bdd1f
mov rbx, qword [rdi + 8]
jmp 0x1400bdd1f
xor eax, eax
jmp 0x1400bdd78
xor ebx, ebx
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x1400bdda2
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400bdd75
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140008a40
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.0x_v_
call fcn.1400b7a70
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400bdcfd
jmp 0x1400bdd78
mov ecx, 8
mov edx, 0x10
call fcn.1400dc220
int3
Function at 0x1400bddc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x140101308]
test esi, esi
je 0x1400bde92
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400bde89
je 0x1400bde0d
test rdi, rdi
je 0x1400bde11
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400bde13
mov rbx, qword [rdi + 8]
jmp 0x1400bde13
xor eax, eax
jmp 0x1400bde89
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x1400bdeb3
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400bde86
mov rax, qword [rdi]
test rax, rax
je 0x1400bde73
lock dec qword [rax]
jne 0x1400bde73
mov rcx, rdi
call fcn.140078440
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140008a40
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401012f0]
call fcn.1400b7a70
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400bddf1
jmp 0x1400bde89
mov ecx, 8
mov edx, 0x10
call fcn.1400dc220
ud2
Function at 0x1400f1da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1400f1e2a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400f1e20
cmp r10, r11
jb 0x1400f1ea6
cmp r10, rdx
ja 0x1400f1eb8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1400f1e22
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400f1e00
jmp 0x1400f1e87
ja 0x1400f1e2a
mov r11, r10
cmp rax, r8
jne 0x1400f1dc7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1400f1e8b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400f1e60
mov r8, r10
sub ecx, r9d
jns 0x1400f1e7e
jmp 0x1400f1e8d
cmp r10, rdx
je 0x1400f1e9a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400f1e8d
xor al, 1
cmp r8, rdx
jne 0x1400f1e40
jmp 0x1400f1e8d
xor eax, eax
jmp 0x1400f1e8d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x14044c808]
call fcn.1400e8dc0
lea r8, [0x14044c820]
mov rcx, r11
mov rdx, r10
call fcn.1400ef2e0
lea r8, [0x14044c820]
mov rcx, r10
call fcn.1400ef270
int3

Function at 0x1400ff8a0
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.140100670
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.140100670
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400ff910
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140478274]
mov rbx, rcx
test esi, esi
jle 0x1400ffa40
mov rax, qword [0x140478278]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400ff95b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400ff9e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400ff940
mov rcx, rbx
call fcn.140100390
mov rdi, rax
test rax, rax
je 0x1400ffa62
mov rax, qword [0x140478278]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1401004d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140478278]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400ffa47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400ff9de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400ff9f0
add dword [0x140478274], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140478278]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1400ff9de
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400ff8a0
nop dword [rax]
xor esi, esi
jmp 0x1400ff968
mov rax, qword [0x140478278]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400ff8a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400ff8a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140100000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1404782e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1404782c0]
test rbx, rbx
je 0x14010005c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140100053
test eax, eax
jne 0x140100053
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140100038
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140100390
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140457930]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401003b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401003b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401003b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14010040d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140100404
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401003b0
add rax, 0x28
cmp rax, r9
jne 0x1401003f0
xor eax, eax
ret

Function at 0x140100410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140457930]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14010042f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140100438
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14010042f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1401004d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140457930]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401004ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1401004f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400017a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Execute command

Disassembly:
sub rsp, 0x28
cmp byte [0x14000fc8f], 0
mov eax, dword [str.VZD8N]
mov dword [rsp + 0x30], eax
je 0x140001886
xor ecx, ecx
cmp dword [0x140013090], 2
jl 0x14000184f
movdqa xmm3, xmmword [0x14000fd40]
lea rcx, [rsp + 0x30]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x14000fde0]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x14000fde0]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
psrad xmm2, 5
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [str.::::]
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmmword [0x14000fdb0]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x14000fdd0]
xorps xmm3, xmm0
movd dword [rsp + 0x30], xmm3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x28
ret
lea r8, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
mul ecx
shr edx, 5
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 4
jl 0x140001860
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x28
ret