joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f1910
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 [0x1402f6250]
mov ecx, 0x10
mov edx, 8
call fcn.14002dcc0
test rax, rax
je 0x1400f19c8
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400f1a20]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400f19bb
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400f199a
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14002dd50
mov edx, 8
mov rcx, rsi
call fcn.14002dd50
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.14002fda0
ud2

Function at 0x1400f1af0
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 0x1400f1b26
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.1400eb5a0]
mov qword [rsp + 0x48], rax
lea rax, str._d_
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.hd_
lea rcx, [rsp + 0x50]
call fcn.140032e60
ud2

Function at 0x1400f71e0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400ce680
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400f727e
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
call fcn.1400ea4b0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400f727e
mov rcx, rdi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x1400f725a
test rsi, rsi
je 0x1400f7256
mov edx, 2
mov rcx, rdi
call fcn.14002dd50
xor esi, esi
jmp 0x1400f727e
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400f727b
mov edx, 2
mov rcx, rdi
call fcn.14002dd50
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400f7440
Capabilities:
Copy file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rbx, r9
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.1400ce680
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
test rax, rax
je 0x1400f754a
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x30]
call fcn.1400ea4b0
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
test rsi, rsi
je 0x1400f754a
mov r8, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.1400ce680
mov rax, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
test rax, rax
je 0x1400f7557
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x30]
call fcn.1400ea4b0
mov rbx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
test rbx, rbx
je 0x1400f7557
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1400f75d0]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov rdx, rbx
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x1400f7564
mov rax, qword [rsp + 0x30]
mov qword [rdi + 8], rax
mov qword [rdi], 0
test r15, r15
jne 0x1400f7581
jmp 0x1400f758e
mov qword [rdi + 8], r14
mov qword [rdi], 1
jmp 0x1400f75a0
mov qword [rdi + 8], r15
mov qword [rdi], 1
jmp 0x1400f758e
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rdi + 8], rax
mov qword [rdi], 1
test r15, r15
je 0x1400f758e
mov edx, 2
mov rcx, rbx
call fcn.14002dd50
test r14, r14
je 0x1400f75a0
mov edx, 2
mov rcx, rsi
call fcn.14002dd50
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400f7630
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 [0x140225188]
test ecx, ecx
je 0x1400f7729
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400f7660
cmp qword [rax + 8], 0
je 0x1400f7660
add rax, 0x10
jmp 0x1400f7723
mov ecx, dword [0x140225188]
test ecx, ecx
je 0x1400f773c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400f7703
mov rsi, rax
test rax, rax
jne 0x1400f76d3
movzx eax, byte [0x1402f6250]
mov ecx, 0x20
mov edx, 8
call fcn.14002dcc0
test rax, rax
je 0x1400f7762
mov rsi, rax
lea rax, [0x140225170]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140225188]
test ecx, ecx
je 0x1400f774f
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
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 0x1400f7707
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400f770f
xor eax, eax
jmp 0x1400f7723
call fcn.1400f1af0
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, [0x140225170]
call fcn.1400cc650
mov ecx, eax
jmp 0x1400f7645
lea rcx, [0x140225170]
call fcn.1400cc650
mov ecx, eax
jmp 0x1400f7670
lea rcx, [0x140225170]
call fcn.1400cc650
mov ecx, eax
jmp 0x1400f76cb
mov ecx, 8
mov edx, 0x20
call fcn.14002fda0
ud2
Function at 0x1400fa191
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400fa22a
mov rdi, rax
movsxd r12, dword [rsp + 0x2c]
lea rbx, [rsp + 0x30]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x1400fa20f
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.1400f8644
mov rcx, rbx
mov rdx, r14
call fcn.1400fa47b
add r13, 8
jmp 0x1400fa1df
mov rcx, rdi
call sub.kernel32.dll_LocalFree
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jmp 0x1400fa238
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400ff5a7
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x40
mov rcx, rdi
call sub.kernel32.dll_GlobalMemoryStatusEx
mov rax, qword [rdi + 8]
mov qword [rsi + 0xa0], rax
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0xa8], rax
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x50], xmm6
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
and qword [rcx + 0x60], 0
mov edx, 0x68
call sub.psapi.dll_GetPerformanceInfo
cmp eax, 1
jne 0x1400ff67a
mov rdx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub rdx, r9
cmovb rdx, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdx, qword [rsp + 0x28]
sub rdx, r9
cmovb rdx, r10
mov rax, rcx
mul rdx
cmovo rax, r11
mov qword [rsi + 0xb0], r8
mov qword [rsi + 0xb8], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x140100547
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
imul rbx, rdx, 0x90
xor r14d, r14d
lea rdi, [rsp + 0x28]
mov r15, rcx
cmp rbx, r14
je 0x1401005ac
cmp qword [r15 + 0x78], 0
je 0x14010059c
and qword [rsp + 0x28], 0
mov rcx, qword [rsi + r14 + 0x48]
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x14010059c
mov rax, qword [rsp + 0x28]
mov qword [rsi + r14 + 0x80], rax
add r15, 0x90
add r14, 0x90
jmp 0x140100567
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14010139c
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x140101463
lea rcx, [0x1402778f2]
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]
mov rax, qword [rax + 0xa0]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call rax
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x140101463
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.1400fde28
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 0x140101472
mov qword [rdi], 2
mov rcx, rsi
call fcn.1400fdd67
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140101b83
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rdi, rcx
lea rdx, [0x140277e7f]
lea rcx, [rsp + 0x58]
mov r8d, 0x2c
call fcn.14000e761
lea rdx, [0x140277eab]
lea rcx, [rsp + 0x40]
mov r8d, 0x12
call fcn.14000e761
lea rax, [rsp + 0x70]
and qword [rax], 0
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov rdx, rsi
xor r8d, r8d
mov r9d, 0x20019
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x140101c04
and qword [rdi], 0
mov rbx, qword [rsp + 0x40]
jmp 0x140101d93
mov dword [rsp + 0x38], 0x800
and dword [rsp + 0x3c], 0
mov ecx, 0x800
call fcn.140072fab
lea r15, [rsp + 0x78]
mov qword [r15], rax
mov qword [r15 + 8], rdx
and qword [r15 + 0x10], 0
mov rbx, qword [rsp + 0x40]
lea r13, [rsp + 0x38]
lea r12, [rsp + 0x3c]
mov rcx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rdx, rbx
xor r8d, r8d
mov r9, r12
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140101c72
mov edx, dword [rsp + 0x38]
mov rcx, r15
call fcn.140070abe
jmp 0x140101c3b
test eax, eax
jne 0x140101d66
mov r8d, dword [rsp + 0x38]
shr r8d, 1
lea rcx, [rsp + 0x90]
mov rdx, r14
call fcn.1400f8644
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140101cb2
cmp byte [rcx + rax - 1], 0
sete r8b
jmp 0x140101cb5
xor r8d, r8d
test r8b, r8b
je 0x140101d6c
test rcx, rcx
je 0x140101d5f
movzx r9d, byte [rax + rcx - 1]
mov rdx, 0xffffffffffffffff
test r9b, r9b
jns 0x140101d57
movzx r10d, byte [rax + rcx - 2]
cmp r10b, 0xbf
jg 0x140101d05
movzx r11d, byte [rax + rcx - 3]
cmp r11b, 0xc0
jge 0x140101d0b
movzx ebp, byte [rax + rcx - 4]
and ebp, 7
shl ebp, 6
and r11d, 0x3f
or r11d, ebp
jmp 0x140101d0f
and r10d, 0x1f
jmp 0x140101d1a
and r11d, 0xf
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
shl r10d, 6
and r9d, 0x3f
or r9d, r10d
cmp r9d, 0x110000
je 0x140101cb5
cmp r9d, 0x80
jb 0x140101d57
mov rdx, 0xfffffffffffffffe
cmp r9d, 0x800
jb 0x140101d57
xor edx, edx
cmp r9d, 0x10000
setb dl
or rdx, 0xfffffffffffffffc
add rcx, rdx
jmp 0x140101ca2
xor ecx, ecx
jmp 0x140101ca2
and qword [rdi], 0
jmp 0x140101d83
mov qword [rsp + 0xa0], rcx
mov qword [rdi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rdi], xmm0
mov rdx, qword [rsp + 0x80]
mov rcx, r14
call fcn.1400f7fd9
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.14000822d
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
call fcn.14000822d
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14010482a
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140104843
dec ecx
add rsp, 0x28
jmp sub.kernel32.dll_TlsGetValue
mov rcx, rax
call fcn.1400cc650
mov ecx, eax
jmp 0x14010483a
Function at 0x140109b88
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 0x140109b8f
test al, 1
je 0x140109bae
test al, 2
jne 0x140109bc3
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x14027aa40]
mov edx, 0x23
jmp 0x140109bd6
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x14027aa80]
mov edx, 0x25
call fcn.140033ba0
ud2

Function at 0x14010a7fd
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140108dfb
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 0x14010a838
xor eax, eax
jmp 0x14010a845
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x14010aaf5
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 r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove 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 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.14010a7f5
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x14010ac76
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x14010ac84
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._home_wyene_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_io_poll_evented.rs
call fcn.140108e19
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x14010ac96
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.140047f09
cmp al, 0xd
jne 0x14010ac46
mov rax, qword [r15 + 8]
test rax, rax
je 0x14010ac46
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14010acc8
mov r15, r14
mov r14, rbx
mov rbx, r13
mov r13, rdi
mov rdi, rbp
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14006a7dc
mov rbp, rax
xor ecx, ecx
call fcn.14006c3dd
test rbp, rbp
je 0x14010ac32
mov ecx, 1
mov rdx, rsi
call fcn.14006a978
mov rsi, rbp
mov rbp, rdi
mov rdi, r13
mov r13, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1401037f6
cmp al, 0xd
jne 0x14010aca7
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.14010a568
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.140102112
jmp 0x14010ab4b
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x14010acb7
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x14010acb7
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x14010acb7
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 0x140118a15
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
xorps xmm0, xmm0
lea r13, [rsp + 0x40]
movaps xmmword [r13], xmm0
mov r15d, 0x10
mov r12d, 0xffffffff
test r15, r15
je 0x140118a91
mov rdi, r13
cmp r15, r12
mov r14d, 0xffffffff
cmovb r14, r15
add r13, r14
sub r15, r14
xor ecx, ecx
mov rdx, rdi
mov r8d, r14d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140118a43
mov ebx, eax
mov rcx, rdi
mov edx, r14d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x140118a43
xor ebx, 0x80000000
jne 0x140118afa
movdqa xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm0
mov al, byte [rsp + 0x26]
mov cl, byte [rsp + 0x27]
mov dl, byte [rsp + 0x28]
mov r8b, byte [rsp + 0x2f]
pextrw r9d, xmm0, 2
movd dword [rsi], xmm0
psrldq xmm0, 9
and dl, 0x3f
or dl, 0x80
and al, 0xf
or al, 0x40
mov word [rsi + 4], r9w
mov byte [rsi + 6], al
mov byte [rsi + 7], cl
mov byte [rsi + 8], dl
movd dword [rsi + 9], xmm0
mov byte [rsi + 0xf], r8b
pextrw eax, xmm0, 2
mov word [rsi + 0xd], ax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x3c]
mov dword [rax], ebx
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
lea rax, [0x14029fb40]
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
mov eax, 1
mov qword [rcx + 8], rax
and qword [rcx + 0x20], 0
lea r8, [0x140042695]
mov qword [rdx + 8], r8
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
lea rdx, str._home_wyene_.cargo_registry_src_index.crates.io_6f17d22bba15001f_uuid_1.7.0_src_rng.rscould_not_retrieve_random_bytes_for_uuid:
call fcn.140032e60
ud2

Function at 0x14011f090
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.14011fe30
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.14011fe30
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 0x14011f100
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402f62d4]
mov rbx, rcx
test esi, esi
jle 0x14011f230
mov rax, qword [0x1402f62d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14011f14b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14011f1d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14011f130
mov rcx, rbx
call fcn.14011fb50
mov rdi, rax
test rax, rax
je 0x14011f252
mov rax, qword [0x1402f62d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14011fc90
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402f62d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14011f237
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14011f1ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14011f1e0
add dword [0x1402f62d4], 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 [0x1402f62d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14011f1ce
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14011f090
nop dword [rax]
xor esi, esi
jmp 0x14011f158
mov rax, qword [0x1402f62d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14011f090
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14011f090
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14011f7c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402f6340]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x1402f6320]
test rbx, rbx
je 0x14011f81c
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 eax, eax
jne 0x14011f813
test rsi, rsi
je 0x14011f813
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14011f7f8
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 0x14011fb50
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14011fbd0
Capabilities:
Parse pe header

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

Function at 0x14011fc90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402b0e30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14011fcaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14011fcb8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret