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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14015f0e8]
test ecx, ecx
je 0x1401157b0
dec ecx
call fcn.14015cbe4
cmp rax, 2
jb 0x140115704
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140115704
add rdi, 0x10
jmp 0x1401157a6
mov ecx, dword [0x14015f0e8]
test ecx, ecx
je 0x1401157c3
dec ecx
call fcn.14015cbe4
cmp rax, 1
je 0x1401157a4
mov rsi, rax
test rax, rax
jne 0x140115773
movzx eax, byte [0x14024b248]
mov ecx, 0x18
mov edx, 8
call fcn.140001870
test rax, rax
je 0x1401157e6
mov rsi, rax
lea rax, [0x14015f0d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14015f0e8]
test ecx, ecx
je 0x1401157d6
dec ecx
mov rdx, rsi
call fcn.14015cbec
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1401157a6
test rcx, rcx
je 0x1401157a6
lock dec qword [rcx]
jne 0x1401157a6
call fcn.1401150a0
jmp 0x1401157a6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14015f0d0]
call fcn.1401150f0
mov ecx, eax
jmp 0x1401156e6
lea rcx, [0x14015f0d0]
call fcn.1401150f0
mov ecx, eax
jmp 0x140115714
lea rcx, [0x14015f0d0]
call fcn.1401150f0
mov ecx, eax
jmp 0x14011576b
mov ecx, 8
mov edx, 0x18
call fcn.140001df0
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14015f108]
test ecx, ecx
je 0x140115e5f
dec ecx
call fcn.14015cbe4
cmp rax, 2
jb 0x140115de9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140115e4e
mov ecx, dword [0x14015f108]
test ecx, ecx
je 0x140115e72
dec ecx
call fcn.14015cbe4
cmp rax, 1
je 0x140115e54
mov rsi, rax
test rax, rax
jne 0x140115e48
movzx eax, byte [0x14024b248]
mov ecx, 0x10
mov edx, 8
call fcn.140001870
test rax, rax
je 0x140115e95
mov rsi, rax
lea rax, [0x14015f0f0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14015f108]
test ecx, ecx
je 0x140115e85
dec ecx
mov rdx, rsi
call fcn.14015cbec
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140115e56
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14015f0f0]
call fcn.1401150f0
mov ecx, eax
jmp 0x140115dd5
lea rcx, [0x14015f0f0]
call fcn.1401150f0
mov ecx, eax
jmp 0x140115df5
lea rcx, [0x14015f0f0]
call fcn.1401150f0
mov ecx, eax
jmp 0x140115e40
mov ecx, 8
mov edx, 0x10
call fcn.140001df0
int3
Function at 0x140116ac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14015f0c8]
test ecx, ecx
je 0x140116b7d
dec ecx
call fcn.14015cbe4
cmp rax, 2
jb 0x140116af0
cmp qword [rax + 8], 0
je 0x140116af0
add rax, 0x10
jmp 0x140116b77
mov ecx, dword [0x14015f0c8]
test ecx, ecx
je 0x140116b90
dec ecx
call fcn.14015cbe4
cmp rax, 1
je 0x140116b75
mov rsi, rax
test rax, rax
jne 0x140116b5b
movzx eax, byte [0x14024b248]
mov ecx, 0x20
mov edx, 8
call fcn.140001870
test rax, rax
je 0x140116bb3
mov rsi, rax
lea rax, [0x14015f0b0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14015f0c8]
test ecx, ecx
je 0x140116ba3
dec ecx
mov rdx, rsi
call fcn.14015cbec
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140116b77
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14015f0b0]
call fcn.1401150f0
mov ecx, eax
jmp 0x140116ad5
lea rcx, [0x14015f0b0]
call fcn.1401150f0
mov ecx, eax
jmp 0x140116b00
lea rcx, [0x14015f0b0]
call fcn.1401150f0
mov ecx, eax
jmp 0x140116b53
mov ecx, 8
mov edx, 0x20
call fcn.140001df0
int3
Function at 0x14011a610
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.140132f80
mov rdi, rdx
test rax, rax
je 0x14011a6a0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.140114910
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1401331d0
cmp dword [rsp + 0x38], 2
jne 0x14011a6cf
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14011a71b
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14011a747
lea rcx, [rsp + 0x88]
call fcn.140114910
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14015c9bc
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x14011a7a5
mov qword [rsp + 0x80], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14011a821
mov rbx, qword [rsp + 0x80]
jmp 0x14011a7a7
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 0x14011a810
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 fcn.14015c9bc
test r15, r15
je 0x14011a810
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14011a84d
mov qword [rsi], 0
mov rcx, rbx
call fcn.14015c9bc
jmp 0x14011a84d
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140114910
mov qword [rsi], 0
mov rcx, rdi
call fcn.14015c9bc
jmp 0x14011a68f
Function at 0x140133920
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.140117020
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x14013396f
lea rcx, [rsp + 0xb0]
call fcn.140114910
mov qword [rsi], rdi
jmp 0x140133b4b
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x140133a00
jmp 0x1401339df
jae 0x140133aa7
cmp r8, 0x201
jae 0x140133a00
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x140133a47
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x140133a27
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.1401174a0
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140133a6e
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140133ae6
mov r8d, r15d
cmp r12, r8
jne 0x1401339d0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140133b7b
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x1401339df
jmp 0x140133a00
cmp rdi, r8
jb 0x140133b95
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1401194b0
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x140133b07
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x140133b20
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140001900
cmp qword [rsp + 0x60], rdi
jne 0x140133b60
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.140114910
cmp qword [rsp + 0x40], 0
je 0x140133b4b
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140001900
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x140133b3c
jmp 0x140133b4b
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140048530
jmp 0x140133baa
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.140048190
ud2
Function at 0x140138aa0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14015f128]
test ecx, ecx
je 0x140138b80
dec ecx
call fcn.14015cbe4
cmp rax, 2
jb 0x140138ad4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140138ad4
add rdi, 0x10
jmp 0x140138b76
mov ecx, dword [0x14015f128]
test ecx, ecx
je 0x140138b93
dec ecx
call fcn.14015cbe4
cmp rax, 1
je 0x140138b74
mov rsi, rax
test rax, rax
jne 0x140138b43
movzx eax, byte [0x14024b248]
mov ecx, 0x18
mov edx, 8
call fcn.140001870
test rax, rax
je 0x140138bb6
mov rsi, rax
lea rax, [0x14015f110]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14015f128]
test ecx, ecx
je 0x140138ba6
dec ecx
mov rdx, rsi
call fcn.14015cbec
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140138b76
test rcx, rcx
je 0x140138b76
lock dec qword [rcx]
jne 0x140138b76
call fcn.140138bd0
jmp 0x140138b76
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14015f110]
call fcn.1401150f0
mov ecx, eax
jmp 0x140138ab6
lea rcx, [0x14015f110]
call fcn.1401150f0
mov ecx, eax
jmp 0x140138ae4
lea rcx, [0x14015f110]
call fcn.1401150f0
mov ecx, eax
jmp 0x140138b3b
mov ecx, 8
mov edx, 0x18
call fcn.140001df0
int3
Function at 0x14013a300
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x14024b248]
mov ecx, 0x10
mov edx, 8
call fcn.140001870
test rax, rax
je 0x14013a3b8
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14013a410]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14013a3ab
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14013a38a
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140001900
mov edx, 8
mov rcx, rsi
call fcn.140001900
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.140001df0
ud2

Function at 0x14013a4e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14013a516
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.140134420]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.1400477f0
ud2
Function at 0x14013fb90
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x14015f148]
test ecx, ecx
je 0x14013fc89
dec ecx
call fcn.14015cbe4
cmp rax, 2
jb 0x14013fbc0
cmp qword [rax + 8], 0
je 0x14013fbc0
add rax, 0x10
jmp 0x14013fc83
mov ecx, dword [0x14015f148]
test ecx, ecx
je 0x14013fc9c
dec ecx
call fcn.14015cbe4
cmp rax, 1
je 0x14013fc63
mov rsi, rax
test rax, rax
jne 0x14013fc33
movzx eax, byte [0x14024b248]
mov ecx, 0x20
mov edx, 8
call fcn.140001870
test rax, rax
je 0x14013fcc2
mov rsi, rax
lea rax, [0x14015f130]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14015f148]
test ecx, ecx
je 0x14013fcaf
dec ecx
mov rdx, rsi
call fcn.14015cbec
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14013fc67
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14013fc6f
xor eax, eax
jmp 0x14013fc83
call fcn.14013a4e0
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x14015f130]
call fcn.1401150f0
mov ecx, eax
jmp 0x14013fba5
lea rcx, [0x14015f130]
call fcn.1401150f0
mov ecx, eax
jmp 0x14013fbd0
lea rcx, [0x14015f130]
call fcn.1401150f0
mov ecx, eax
jmp 0x14013fc2b
mov ecx, 8
mov edx, 0x20
call fcn.140001df0
int3

Function at 0x140140973
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb 0x14004e750
jmp fcn.140047d20
Function at 0x140141ef4
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140141f15
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14015cbec
mov rcx, rax
call fcn.1401150f0
mov ecx, eax
jmp 0x140141f08

Function at 0x140143658
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140143671
dec ecx
add rsp, 0x28
jmp fcn.14015cbe4
mov rcx, rax
call fcn.1401150f0
mov ecx, eax
jmp 0x140143668

Function at 0x14014628d
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140146294
test al, 1
je 0x1401462b3
test al, 2
jne 0x1401462cb
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140203438]
mov edx, 0x23
call fcn.140048530
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140203478]
mov edx, 0x25
call fcn.140048530
int3

Function at 0x140146c3b
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140145ce7
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140146c76
xor eax, eax
jmp 0x140146c83
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x140146eda
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rsp + 0x3a]
lea rcx, [rdx + 0x10]
xor r15d, r15d
cmp qword [rdx + 0x10], 0xffffffffffffffff
cmovne r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 8]
mov rcx, rsi
mov r8, rbx
call fcn.140146c33
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x14014704a
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x140147058
mov dl, byte [rsp + 0x38]
movzx r8d, word [rdi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rdi]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.40.0_src_io_poll_evented.rs
call fcn.140145d05
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x14014706a
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14005df1e
cmp al, 0xd
jne 0x14014701a
mov rax, qword [r15 + 8]
test rax, rax
je 0x14014701a
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14014709c
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14007b6bf
mov rbx, rax
xor ecx, ecx
call fcn.140079d91
test rbx, rbx
je 0x14014700f
mov ecx, 1
mov rdx, rsi
call fcn.14007b7e4
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1401429f4
cmp al, 0xd
jne 0x14014707b
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.140146931
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.140142c78
jmp 0x140146f31
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x14014708b
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x14014708b
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x14014708b
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14015d730
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.14015e4f0
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.14015e4f0
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 0x14015d7a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14024b2c4]
mov rbx, rcx
test esi, esi
jle 0x14015d8d0
mov rax, qword [0x14024b2c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14015d7eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14015d875
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14015d7d0
mov rcx, rbx
call fcn.14015e210
mov rdi, rax
test rax, rax
je 0x14015d8f2
mov rax, qword [0x14024b2c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14015e350
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14024b2c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14015d8d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14015d86e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14015d880
add dword [0x14024b2c4], 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 [0x14024b2c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14015d86e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14015d730
nop dword [rax]
xor esi, esi
jmp 0x14015d7f8
mov rax, qword [0x14024b2c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14015d730
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14015d730
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14015de80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14024b320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14024b300]
test rbx, rbx
je 0x14015dedc
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 0x14015ded3
test eax, eax
jne 0x14015ded3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14015deb8
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 0x14015e210
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140230890]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14015e230
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14015e238
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14015e230
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14015e28d
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 0x14015e284
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14015e230
add rax, 0x28
cmp rax, r9
jne 0x14015e270
xor eax, eax
ret

Function at 0x14015e290
Capabilities:
Parse pe header

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

Function at 0x14015e350
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140230890]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14015e36f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14015e378
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401f6dc0]
mov dword [rax], 1
mov rax, qword [0x1401f6dd0]
mov dword [rax], 1
mov rax, qword [0x1401f6de0]
mov dword [rax], 1
mov rax, qword [0x1401f6d40]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret