joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e5fb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140107e50
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov r15, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rbx, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea r13, [0x1400dc990]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xfc0]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400e61b8
mov r14, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rbx, [rbp + 0xfc0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r15
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 0
je 0x1400e6081
cmp dword [rbp + 0xfec], 0
jne 0x1400e61cb
mov eax, dword [rbp + 0xff0]
test rax, rax
je 0x1400e61cb
cmp eax, 0x1000
ja 0x1400e6212
xor r15d, r15d
nop word cs:[rax + rax]
cmp r15, rax
ja 0x1400e61f7
lea rdx, [r15 + rbp]
add rdx, 0xffffffffffffffb0
mov r12, rax
mov r8d, eax
sub r8d, r15d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov rcx, rsi
mov r9, rbx
call rdi
test eax, eax
je 0x1400e61bf
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 0
je 0x1400e6130
cmp dword [rbp + 0xfec], 0
jne 0x1400e61c4
mov eax, dword [rbp + 0xff0]
add r15, rax
mov rax, r12
cmp r15, r12
jne 0x1400e60d0
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov r15, qword [rbp + 0xfe0]
mov rcx, r15
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400e6081
call sub.KERNEL32.dll_GetLastError
jmp 0x1400e61cb
call sub.KERNEL32.dll_GetLastError
mov r15, qword [rbp + 0xfe0]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov qword [rbp + 0xfe0], rax
mov rdx, rax
call fcn.1401094d0
jmp 0x1400e622d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfe0], rax
mov rcx, rax
call fcn.140109240
ud2
Function at 0x1400e62c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1400e6303
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1400d6530]
mov qword [rbp - 0x28], rax
lea rax, [0x14014f7c0]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140109170
ud2

Function at 0x1400ec5f0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400ec625
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400ec62a
call fcn.1400e62c0
nop
add rsp, 0x38
ret

Function at 0x1400ed3ed
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400ed512
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
test rbp, rbp
je 0x1400ed4f1
shl rbp, 3
mov ebx, 8
xor esi, esi
lea r14, [rsp + 0x60]
xor r15d, r15d
xor r12d, r12d
mov r13, qword [rdi + r15]
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
mov word [rsp + 0x70], 0
lea rcx, [rsp + 0x48]
mov rdx, r14
call fcn.1400ecdc9
cmp r12, qword [rsp + 0x28]
jne 0x1400ed4c0
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.1400ed65a
mov rbx, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x58]
mov qword [rbx + rax*8 + 0x10], rcx
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx + rax*8], xmm0
mov r12, qword [rsp + 0x38]
inc r12
mov qword [rsp + 0x38], r12
add r15, 8
cmp rbp, r15
jne 0x1400ed45a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
jmp 0x1400ed523
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], rax
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400f3461
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], 0
cmp qword [rdx + 0x10], 0
je 0x1400f3534
lea rcx, [0x140150b92]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x1400f3534
mov rbx, qword [rsp + 0x38]
cmp qword [rsi + 0x20], 0
je 0x1400f3500
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x1400f3500
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x1400f3543
mov qword [rdi], 2
mov rcx, rsi
call fcn.1400f19a2
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1400fabe4
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 0x1400fabeb
test al, 1
je 0x1400fac0a
test al, 2
jne 0x1400fac1f
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140152d70]
mov edx, 0x23
jmp 0x1400fac32
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140152db0]
mov edx, 0x25
call fcn.140109250
ud2

Function at 0x1400fbcb4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
cmp rdx, 0xffffffffffffffff
je 0x1400fbcc7
add rsp, 0x28
jmp fcn.1400dc2d0
lea rcx, str.called__Option::unwrap____on_a__None__valueC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.5_srcwin.rs
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.21.2_srciopoll_evented.rs
mov edx, 0x2b
call fcn.140109250
ud2

Function at 0x1400fbce1
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x1400fbd2a
movzx eax, dl
lea r9, [rsp + 0x34]
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 0x1400fbd17
xor eax, eax
jmp 0x1400fbd25
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.5_srcwin.rs
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.21.2_srciopoll_evented.rs
mov edx, 0x2b
call fcn.140109250
ud2
Function at 0x1400fbfb8
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 qword [rsp + 0x48], r9
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea r14, [rdx + 0x10]
mov rbx, qword [rdx]
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
mov r13, qword [rdx + 8]
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, qword [rsp + 0x50]
mov r9b, 1
call fcn.1400fb2d8
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x1400fc135
mov rsi, qword [rsp + 0x38]
test rax, rax
jne 0x1400fc143
cmp r13, 0xffffffffffffffff
je 0x1400fc192
mov r15b, byte [rsp + 0x40]
mov rcx, r13
mov rdx, qword [rsp + 0x48]
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400fc155
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov rbp, rax
shl rbp, 0x20
or rbp, 2
mov ecx, eax
call fcn.1400d1280
cmp al, 0xd
jne 0x1400fc0cd
test rbx, rbx
je 0x1400fc0cd
mov rcx, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
lock inc qword [rdx]
jle 0x1400fc1ac
add rcx, 0x10
mov r8, qword [rbx]
mov r9b, byte [rbx + 0x18]
call fcn.140068abc
test rax, rax
je 0x1400fc0cd
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 1
mov rcx, rbp
call fcn.1400c9fdc
mov eax, edi
and eax, 3
lea rcx, [0x1400fc1b0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov rbp, rdi
jmp rax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], rbp
mov eax, ebp
and eax, 3
lea rcx, [0x1400fc1b0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov al, byte [rbp + 0x10]
jmp 0x1400fc106
mov al, byte [rbp + 0xf]
jmp 0x1400fc106
mov rcx, rbp
shr rcx, 0x20
call fcn.1400d1280
cmp al, 0xd
je 0x1400fc118
jmp 0x1400fc171
mov rax, rbp
shr rax, 0x20
cmp eax, 0xd
jne 0x1400fc171
mov rcx, r14
mov rdx, rsi
mov r8d, r15d
call fcn.1400fb6e7
lea rcx, [rsp + 0x38]
call fcn.1400f6cbc
jmp 0x1400fbff7
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400fc181
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
jmp 0x1400fc181
cdqe
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x28]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
jmp 0x1400fc181
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.5_srcwin.rs
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.21.2_srciopoll_evented.rs
mov edx, 0x2b
call fcn.140109250
ud2
ud2
Function at 0x1400fc1c0
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, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0xf0]
lea r14, [rdx + 0x10]
mov rbx, qword [rdx]
mov r12, qword [rdx + 8]
mov r13d, 0xffffffff
cmp rax, r13
cmovb r13, rax
xorps xmm6, xmm6
lea rcx, [rsp + 0x48]
mov rdx, r14
mov r8, qword [rsp + 0x68]
mov r9b, 1
call fcn.1400fb2d8
mov rax, qword [rsp + 0x48]
cmp rax, 2
je 0x1400fc359
mov r15, qword [rsp + 0x50]
test rax, rax
jne 0x1400fc367
cmp r12, 0xffffffffffffffff
je 0x1400fc3c0
mov sil, byte [rsp + 0x58]
xor eax, eax
mov dword [rsp + 0x3c], eax
movups xmmword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], eax
mov rcx, r12
mov rdx, qword [rsp + 0x60]
mov r8d, r13d
lea r9, [rsp + 0x3c]
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
jne 0x1400fc379
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov rbp, rax
shl rbp, 0x20
or rbp, 2
mov ecx, eax
call fcn.1400d1280
cmp al, 0xd
jne 0x1400fc2f1
test rbx, rbx
je 0x1400fc2f1
mov rcx, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
lock inc qword [rdx]
jle 0x1400fc3da
add rcx, 0x10
mov r8, qword [rbx]
mov r9b, byte [rbx + 0x18]
call fcn.140068abc
test rax, rax
je 0x1400fc2f1
mov rdi, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 1
mov rcx, rbp
call fcn.1400c9fdc
mov eax, edi
and eax, 3
lea rcx, [0x1400fc3e0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov rbp, rdi
jmp rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], rbp
mov eax, ebp
and eax, 3
lea rcx, [0x1400fc3e0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov al, byte [rbp + 0x10]
jmp 0x1400fc32a
mov al, byte [rbp + 0xf]
jmp 0x1400fc32a
mov rcx, rbp
shr rcx, 0x20
call fcn.1400d1280
cmp al, 0xd
je 0x1400fc33c
jmp 0x1400fc397
mov rax, rbp
shr rax, 0x20
cmp eax, 0xd
jne 0x1400fc397
mov rcx, r14
mov rdx, r15
mov r8d, esi
call fcn.1400fb6e7
lea rcx, [rsp + 0x50]
call fcn.1400f6cbc
jmp 0x1400fc20a
mov rax, qword [rsp + 0x40]
mov qword [rax], 2
jmp 0x1400fc3a7
mov rax, qword [rsp + 0x40]
mov qword [rax], 1
mov qword [rax + 8], r15
jmp 0x1400fc3a7
mov eax, dword [rsp + 0x3c]
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x40]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
jmp 0x1400fc3a7
mov rax, qword [rsp + 0x40]
mov qword [rax], 1
mov qword [rax + 8], rbp
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.5_srcwin.rs
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.21.2_srciopoll_evented.rs
mov edx, 0x2b
call fcn.140109250
ud2
ud2
Function at 0x140108394
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401083de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401083de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401083de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401083de
cmp dword [rcx + 0x84], 0xe
jbe 0x1401083de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401083e0
xor al, al
add rsp, 0x28
ret
Function at 0x14010d923
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14010d97c
mov rsi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14010d97c
mov rbx, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14010d97c
mov rsi, rax
mov r15d, 1
jmp 0x14010da04
lea rcx, [0x140142a98]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14010da6e
mov rdi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14010da6e
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14010da6e
mov rsi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14010da6e
mov rdi, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x14010da6e
mov rbx, qword [rsp + 0x28]
xor r15d, r15d
mov ecx, 0x20
mov edx, 8
call fcn.14002d260
test rax, rax
je 0x14010da88
mov r14, rax
mov qword [rax], r15
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
xor eax, eax
lock cmpxchg qword [0x140184830], r14
je 0x14010da5f
mov rsi, rax
cmp qword [r14], 0
jne 0x14010da4a
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401849b0]
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, rsi
mov rax, r14
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.9.4_src_thread_parkerwindowsmod.rs
lea r8, [0x140142ba0]
mov edx, 0x5b
call fcn.14010da99
ud2
mov ecx, 0x20
mov edx, 8
call fcn.140108e10
ud2
Function at 0x1401103e0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1401849b8]
cmp rax, 3
jne 0x1400dbc0d
cmp rbx, 0x17f
ja 0x1400dbc1f
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.140033770
cmp qword [rsp + 0x28], 0
je 0x1400dbb91
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400dbbfe
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400dbbe8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400dbbfb
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140110380
cmp rbx, 0x17f
jbe 0x1400dbb4a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x1401103e0
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14002d540
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x140110440
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x1401104cf
mov rcx, qword [0x1401849b0]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14011049f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1401104b2
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x1401104cf
mov rcx, qword [0x1401849b0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x2fc5c9dc0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc5ca7c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc5ed108]
test eax, eax
je 0x2fc5ca85a
lea rax, [0x2fc5ed0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc5ed110]
mov qword [rbp - 8], rax
jmp 0x2fc5ca83e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc5ca832
cmp qword [rbp - 0x10], 0
je 0x2fc5ca832
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc5ca7f8
lea rax, [0x2fc5ed0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5ca85b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5ca960
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc5ca988
mov eax, 0
jmp 0x2fc5ca9d6
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 0x2fc5ca9b1
mov eax, 0
jmp 0x2fc5ca9d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc5ca9d1
mov eax, 0
jmp 0x2fc5ca9d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5ca9dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc5caa5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5caa51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc5caa51
mov rax, qword [rbp - 8]
jmp 0x2fc5caa6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc5caa24
mov eax, 0
add rsp, 0x20
pop rbp
ret