joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ebc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x45ecbd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x45ebf2
mov rdi, rax
cmp qword [rax], 0
jne 0x45ecb7
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x45ecdb
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x45ecf4
mov rdi, rax
test rax, rax
jne 0x45ec65
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], rbx
mov ecx, 0x18
mov edx, 8
call fcn.004018c0
test rax, rax
je 0x45ed10
mov rdi, rax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdi], xmm0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x45ed01
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x45ec7f
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x45ec81
mov rax, qword [rsi + 8]
jmp 0x45ec81
xor eax, eax
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi], 1
mov qword [rdi + 8], rax
test rdx, rdx
je 0x45ecb7
test rcx, rcx
je 0x45ecb7
lock dec qword [rcx]
jne 0x45ecb7
lea rcx, [rsp + 0x30]
call fcn.004488c0
add rdi, 8
jmp 0x45ecf6
mov rcx, rbx
call fcn.0043b930
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x45ebe5
jmp 0x45ebf2
mov rcx, rbx
call fcn.0043b930
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x45ec0e
xor edi, edi
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.0043b930
mov ecx, eax
jmp 0x45ec5d
mov ecx, 0x18
mov edx, 8
call fcn.0048d440
ud2

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x45eef0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x45ef05
cmp qword [rax], 0
je 0x45ef05
add rax, 8
jmp 0x45ef98
mov rcx, rdi
call fcn.0043b930
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x45eee1
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x45ef81
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x45ef96
mov rbx, rax
test rax, rax
jne 0x45ef54
mov ecx, 0x18
mov edx, 8
call fcn.004018c0
test rax, rax
je 0x45efac
mov rbx, rax
mov qword [rax], 0
mov qword [rax + 0x10], rdi
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x45efa0
dec ecx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x45ef6e
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x45ef70
mov rcx, qword [rsi + 8]
jmp 0x45ef70
xor ecx, ecx
lea rax, [rbx + 8]
mov qword [rbx], 1
mov qword [rbx + 8], rcx
jmp 0x45ef98
mov rcx, rdi
call fcn.0043b930
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x45ef19
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.0043b930
mov ecx, eax
jmp 0x45ef4c
mov ecx, 0x18
mov edx, 8
call fcn.0048d440
ud2
Function at 0x45efc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x45f0d2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x45eff2
mov rdi, rax
cmp qword [rax], 0
jne 0x45f0cc
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x45f0f0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x45f109
mov rdi, rax
test rax, rax
jne 0x45f065
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x38], rbx
mov ecx, 0x20
mov edx, 8
call fcn.004018c0
test rax, rax
je 0x45f125
mov rdi, rax
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x45f116
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x45f086
mov rax, qword [rsi]
mov qword [rsi], 0
mov rcx, rax
test rax, rax
je 0x45f08a
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
jmp 0x45f08a
xor eax, eax
xor ecx, ecx
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x30], rdx
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rdi], 1
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rcx
cmp qword [rsp + 0x20], 0
je 0x45f0cc
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x45f0cc
lock dec qword [rax]
jne 0x45f0cc
lea rcx, [rsp + 0x30]
call fcn.004489f0
add rdi, 8
jmp 0x45f10b
mov rcx, rbx
call fcn.0043b930
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x45efe5
jmp 0x45eff2
mov rcx, rbx
call fcn.0043b930
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x45f00e
xor edi, edi
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.0043b930
mov ecx, eax
jmp 0x45f05d
mov ecx, 0x20
mov edx, 8
call fcn.0048d440
ud2

Function at 0x45f9f0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x45fa44
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x45fada
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x45fa57
cmp eax, 0x2739
jne 0x45faa5
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x45faa0
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x45faba
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x45fada
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x45fada
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.WS2_32.dll_closesocket
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x460130
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x108
mov r10, r8
mov rsi, rcx
mov eax, dword [rsp + 0x140]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x3c], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x460210
mov edi, eax
mov eax, dword [rsp + 0x3c]
movzx ecx, word [rsp + 0x80]
cmp ecx, 0x17
je 0x46026e
cmp ecx, 2
jne 0x460262
cmp eax, 0x10
jb 0x460392
mov ecx, dword [rsp + 0x84]
movzx edx, word [rsp + 0x82]
rol dx, 8
call fcn.004acf00
xor edx, edx
jmp 0x4602cf
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x4602ee
mov eax, dword [rsp + 0x3c]
movzx ecx, word [rsp + 0x80]
cmp ecx, 0x17
je 0x460304
cmp ecx, 2
jne 0x460262
cmp eax, 0x10
jb 0x460392
mov ecx, dword [rsp + 0x84]
movzx edx, word [rsp + 0x82]
rol dx, 8
call fcn.004acf00
xor edx, edx
jmp 0x460365
lea rax, [0x004c46e8]
jmp 0x4602f6
cmp eax, 0x1c
jb 0x4603ac
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x70], xmm0
movzx r8d, word [rsp + 0x82]
rol r8w, 8
mov r9d, dword [rsp + 0x84]
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x70]
call fcn.004acf50
mov eax, dword [rsp + 0x40]
shl rax, 0x10
mov rcx, qword [rsp + 0x44]
movups xmm0, xmmword [rsp + 0x4c]
movaps xmmword [rsp + 0x60], xmm0
mov dx, 1
movsxd r8, edi
mov dword [rsi + 0xa], eax
shr rax, 0x20
mov word [rsi + 0xe], ax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
mov qword [rsi], r8
jmp 0x460380
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x460388
cmp eax, 0x1c
jb 0x4603ac
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x70], xmm0
movzx r8d, word [rsp + 0x82]
rol r8w, 8
mov r9d, dword [rsp + 0x84]
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x70]
call fcn.004acf50
mov eax, dword [rsp + 0x40]
shl rax, 0x10
mov rcx, qword [rsp + 0x44]
movups xmm0, xmmword [rsp + 0x4c]
movaps xmmword [rsp + 0x60], xmm0
mov dx, 1
mov dword [rsi + 0xa], eax
shr rax, 0x20
mov word [rsi + 0xe], ax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
mov qword [rsi], 0
mov word [rsi + 8], dx
mov qword [rsi + 0x10], rcx
add rsp, 0x108
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x004c47c8]
mov edx, 0x42
call fcn.004ada10
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x004c4768]
mov edx, 0x43
call fcn.004ada10
ud2
Function at 0x489de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x489e3b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x489e3b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x489e56
cmp eax, 0x42
jne 0x489e3b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x489f0a
cmp byte [r8 + r11], 0x5f
jne 0x489f0a
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x489f7e
mov rcx, rsi
xor edx, edx
call fcn.00488bd0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.00488bd0
test al, al
jne 0x48a018
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x489e91
lea rcx, [0x004d593c]
mov edx, 1
call fcn.00495440
test al, al
jne 0x48a018
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x489e4a
xor r14d, r14d
lea rbx, [0x004d5936]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x489ec9
test rax, rax
je 0x489ec9
cmp byte [rax + rcx], 0x45
je 0x48a041
sub r14, 1
jb 0x489eed
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x489eed
mov edx, 2
mov rcx, rbx
call fcn.00495440
test al, al
jne 0x48a018
mov rcx, rsi
call fcn.00489300
test al, al
jne 0x48a018
mov rax, qword [rsi]
test rax, rax
jne 0x489eb0
jmp 0x489e4a
xor eax, eax
mov edi, 0x3e
nop word cs:[rax + rax]
mov r9b, 1
cmp r11, r10
jae 0x489fdf
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x489f72
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x489f5c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x489f4b
add dl, 0xa9
jmp 0x489f5a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x489fdf
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x489fdf
movzx edx, bl
add rax, rdx
jae 0x489f20
jmp 0x489fdf
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x489fdf
cmp rax, rcx
jae 0x489fdc
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x48a020
cmp qword [rsi + 0x20], 0
je 0x48a03a
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.00489de0
mov edi, eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
cmp al, 2
jne 0x489e4a
jmp 0x48a018
mov r9b, 1
xor edi, edi
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x48a02f
lea rax, [0x004d5901]
lea rcx, str.recursion_limit_reachedinvalid_syntax
test r9b, r9b
cmovne rcx, rax
xor r9b, 1
movzx eax, r9b
lea rdx, [rax + rax*8]
or rdx, 0x10
call fcn.00495440
test al, al
je 0x48a02f
mov dil, 2
jmp 0x489e4a
mov dil, 1
xor r9d, r9d
mov r8, qword [rsi + 0x20]
test r8, r8
jne 0x489fea
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x489e4a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x489e4a
Function at 0x4b5640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x4b56ba
mov rax, rdx
mov rdx, qword [rsp + 0x70]
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 0x4b56b0
cmp r10, r11
jb 0x4b5753
cmp r10, rdx
ja 0x4b5767
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x4b56b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x4b5690
jmp 0x4b5727
ja 0x4b56ba
mov r11, r10
cmp rax, r8
jne 0x4b5662
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x4b572b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x4b5700
mov r8, r10
sub ecx, r9d
jns 0x4b571e
jmp 0x4b572d
cmp r10, rdx
je 0x4b5739
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x4b572d
xor al, 1
cmp r8, rdx
jne 0x4b56e0
jmp 0x4b572d
xor eax, eax
jmp 0x4b572d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueunicode_code_point_out_of_range
lea r8, str.library_core_src_unicode_printable.rs
mov edx, 0x2b
call fcn.004ada10
ud2
lea r8, str.library_core_src_unicode_printable.rs
mov rcx, r11
mov rdx, r10
call fcn.004b9400
ud2
lea r8, str.library_core_src_unicode_printable.rs
mov rcx, r10
call fcn.004b9370
ud2
Function at 0x4bf4f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.004c0210
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.004c0210
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x4bf560
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004fb304]
mov r12, rcx
test ebx, ebx
jle 0x4bf690
mov rax, qword [0x004fb308]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x4bf5ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4bf633
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x4bf590
mov rcx, r12
call fcn.004bff10
mov rsi, rax
test rax, rax
je 0x4bf6b2
mov rax, qword [0x004fb308]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.004c0040
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004fb308]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4bf697
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4bf62c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x4bf640
add dword [0x004fb304], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x004fb308]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4bf62c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004bf4f0
nop dword [rax]
xor ebx, ebx
jmp 0x4bf5b7
mov rax, qword [0x004fb308]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.004bf4f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.004bf4f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4bfb80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004fb360]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004fb340]
test rbx, rbx
je 0x4bfbd4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4bfbcb
test r12, r12
je 0x4bfbcb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4bfbb0
lea rcx, [0x004fb360]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4bff10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x004e75f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4bff30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4bff38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4bff30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4bff85
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4bff7c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4bff30
add rax, 0x28
cmp rax, r9
jne 0x4bff68
xor eax, eax
ret

Function at 0x4bff90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004e75f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4bffb0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4bffb8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x4bffb0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x4c0040
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004e75f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4c0060
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4c0068
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140008b94
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1e8]
mov r10, r8
movsxd r9, dword [rcx + 0x1e0]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
neg r10
sbb edx, edx
and edx, eax
jmp fcn.14000959c

Function at 0x14000922c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x140009253
and qword [r8], 0
call fcn.140009368
mov rbx, rax
test rax, rax
je 0x14000934c
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140009343
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140009343
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140009343
mov rax, qword [0x14009a430]
mov rbp, rdi
test rax, rax
je 0x1400092bb
inc dword [rax + 0x3c8]
mov rdx, qword [0x14009a440]
lea rcx, [r15 + rdi]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x140009343
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x14000931a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14009a430]
test rax, rax
je 0x140009308
dec dword [rax + 0x3c8]
mov rdx, qword [0x14009a440]
mov rcx, rdi
call qword [0x140098008]
jmp 0x14000934c
test r15d, r15d
jle 0x14000932d
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000933e
mov qword [rsi], rbp
mov rax, rdi
jmp 0x14000934e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000959c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x14009a464], 0
lea rsi, [0x14009a460]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x140009603
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x1400095d1
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x1400095c9
not ebx
mov edx, ebx
test edi, edi
jle 0x140009625
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x14000960b
jmp 0x14000965f
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x14000965f
mov r9b, 0x23
cmp r8b, r9b
jne 0x140009644
cmp byte [r10], r9b
jne 0x140009644
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x140009633
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14000e7d4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14009a430]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x14000e83d
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14000e848
lea rdx, [0x140068c94]
mov rcx, rbx
mov rdi, rax
call fcn.140009368
mov rbx, rax
test rax, rax
je 0x14000e83d
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret