joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140112e30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x140171f70]
mov rbx, rdx
mov r11, rcx
not r8d
cmp rdx, 8
jbe 0x140112f36
mov qword [rsp + 0x10], rdi
test cl, 7
je 0x140112e84
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
mov eax, r8d
shr eax, 8
mov r8d, dword [rsi + rcx*4]
xor r8d, eax
test r11b, 7
jne 0x140112e60
mov rdi, rbx
and ebx, 7
and rdi, 0xfffffffffffffff8
add rdi, r11
cmp r11, rdi
jae 0x140112f31
nop word [rax + rax]
xor r8d, dword [r11]
mov r10d, dword [r11 + 4]
add r11, 8
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
xor r8d, dword [rsi + rax*4 + 0x1000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
cmp r11, rdi
jb 0x140112ea0
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x140112f62
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
mov eax, r8d
shr eax, 8
mov r8d, dword [rsi + rcx*4]
xor r8d, eax
sub rbx, 1
jne 0x140112f40
mov rbx, qword [rsp + 0x18]
not r8d
mov eax, r8d
pop rsi
ret

Function at 0x140112f70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
lea r14, [0x140173f70]
mov rbx, rdx
mov r11, rcx
not r8
cmp rdx, 4
jbe 0x140113057
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
test cl, 3
je 0x140112fc5
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
mov rax, r8
shr rax, 8
mov r8, qword [r14 + rcx*8]
xor r8, rax
test r11b, 3
jne 0x140112fa0
xor esi, esi
mov rdi, rbx
and rdi, 0xfffffffffffffffc
and ebx, 3
lea rax, [rdi + r11]
shr rdi, 2
cmp r11, rax
cmova rdi, rsi
test rdi, rdi
je 0x14011304d
nop word [rax + rax]
mov r10d, dword [r11]
inc rsi
mov eax, r8d
add r11, 4
xor r10, rax
mov rax, r10
shr rax, 0x10
movzx edx, al
mov rax, r10
shr rax, 8
movzx ecx, al
mov rax, r10
shr rax, 0x18
mov r9, qword [r14 + rdx*8 + 0x800]
xor r9, qword [r14 + rcx*8 + 0x1000]
xor r9, qword [r14 + rax*8]
movzx eax, r10b
xor r9, qword [r14 + rax*8 + 0x1800]
mov rax, r8
shr rax, 0x20
mov r8, r9
xor r8, rax
cmp rsi, rdi
jb 0x140112ff0
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
test rbx, rbx
je 0x140113083
nop dword [rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
mov rax, r8
shr rax, 8
mov r8, qword [r14 + rcx*8]
xor r8, rax
sub rbx, 1
jne 0x140113060
mov rbx, qword [rsp + 0x20]
not r8
mov rax, r8
pop r14
ret
Function at 0x14011d860
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
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14011d88d
xor eax, eax
jmp 0x14011d98a
cmp qword [rcx + 0x68], 0
je 0x14011d89e
call fcn.14011d9a8
jmp 0x14011d98a
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14011d8b5
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14011d8b7
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14011d8ec
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14011fbe0
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov r8, rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14011d984
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14011d927
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x14011d95f
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.140137328
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x14011d9a3
cmp rbp, r15
ja 0x14011d935
mov r8, rbx
test rbx, rbx
je 0x14011d984
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.140137328
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
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
sub rdi, rbp
jmp 0x14011d987

Function at 0x14012eb28
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14012e9bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012e9bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012e9bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012e9bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012e9bb
cmp dword [rcx + 0x84], 0xe
jbe 0x14012e9bb
cmp dword [rcx + 0xf8], 0
je 0x14012e9bb
mov ecx, ebx
call fcn.14012ea5c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14012e858
cmp dword [rbp + 0x20], 0
je 0x14012ea08
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14012ea10
int3
xor r8d, r8d
xor edx, edx
jmp 0x14012e954
Function at 0x140143c20
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140143c40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14012e4a8
or eax, 0xffffffff
jmp 0x140143c42
xor eax, eax
add rsp, 0x28
ret

Function at 0x140148468
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140148488
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14012e4a8
or eax, 0xffffffff
jmp 0x14014848a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401510d0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
lea rdx, [rcx + 0x90]
lea rcx, [rsp + 0x38]
call fcn.140151220
nop
mov edx, dword [rbx + 0x98]
lea eax, [rdx + 1]
mov dword [rbx + 0x98], eax
test edx, edx
jg 0x1401511b7
mov ecx, 0x202
lea rdx, [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1401511dc
cmp byte [rbx + 0x9c], al
je 0x140151154
lea rcx, [rsp + 0x38]
call fcn.140151310
mov eax, 1
jmp 0x1401511c3
mov byte [rbx + 0x78], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x80], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x88], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1401504b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov byte [rbx + 0x9c], 1
lea rcx, [rsp + 0x38]
call fcn.140151310
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14011b0c0
add rsp, 0x280
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov r9d, eax
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x50]
call fcn.1401512a0
lea rdx, [0x1401b1400]
lea rcx, [rsp + 0x50]
call fcn.1401202c4
int3
lea rcx, [0x1402baad0]
jmp 0x1401510d0

Function at 0x140151210
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
lea rdx, [rcx + 0x90]
lea rcx, [rsp + 0x38]
call fcn.140151220
nop
mov edx, dword [rbx + 0x98]
lea eax, [rdx + 1]
mov dword [rbx + 0x98], eax
test edx, edx
jg 0x1401511b7
mov ecx, 0x202
lea rdx, [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1401511dc
cmp byte [rbx + 0x9c], al
je 0x140151154
lea rcx, [rsp + 0x38]
call fcn.140151310
mov eax, 1
jmp 0x1401511c3
mov byte [rbx + 0x78], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x80], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x88], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1401504b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov byte [rbx + 0x9c], 1
lea rcx, [rsp + 0x38]
call fcn.140151310
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14011b0c0
add rsp, 0x280
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov r9d, eax
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x50]
call fcn.1401512a0
lea rdx, [0x1401b1400]
lea rcx, [rsp + 0x50]
call fcn.1401202c4
int3
lea rcx, [0x1402baad0]
jmp 0x1401510d0
Function at 0x1401545e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, rcx
mov rdi, r8
mov rcx, r8
mov r12, rdx
call fcn.1401524f0
xor ebp, ebp
test eax, eax
je 0x140154652
mov rcx, rdi
call fcn.140152500
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rsi, eax
test eax, eax
jle 0x140154652
mov ebx, ebp
nop dword [rax]
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax]
mov ecx, dword [rcx + rbx*4]
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rcx]
mov dword [rdx + rbx*4], eax
inc rbx
cmp rbx, rsi
jl 0x140154630
lea rbx, [rdi + 0x28]
mov r14d, 4
mov rsi, rbx
mov r15d, r14d
mov ecx, dword [rsi]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsi], eax
lea rsi, [rsi + 4]
sub r15, 1
jne 0x140154662
mov rcx, rdi
call fcn.140152500
add eax, dword [reloc.WS2_32.dll_recv]
lea rdx, [rdi + 0x38]
mov rcx, qword [r13 + 8]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x40], rbp
lea r8d, [r15 + 2]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x80], eax
mov eax, dword [r13 + 4]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
mov esi, 0xffffffff
cmove esi, dword [rsp + 0x80]
nop
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx], eax
lea rbx, [rbx + 4]
sub r14, 1
jne 0x1401546d0
mov rcx, rdi
call fcn.1401524f0
test eax, eax
je 0x140154732
mov rcx, rdi
call fcn.140152500
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rbx, eax
test eax, eax
jle 0x140154732
nop dword [rax + rax]
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rcx]
mov ecx, dword [rdx + rbp*4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rcx]
mov dword [rdx + rbp*4], eax
inc rbp
cmp rbp, rbx
jl 0x140154710
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x40332d
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp word [rdx], 0x5a4d
jne 0x403357
movsxd rax, dword [rdx + 0x3c]
lea rcx, [rsi + 8]
cmp dword [rdx + rax], 0x4550
jne 0x403374
add rdx, rax
mov qword [rcx], rdx
xor eax, eax
jmp 0x40338f
xor ecx, ecx
call fcn.00459c9d
mov qword [rsi + 0x10], rdx
and qword [rsi + 0x18], 0
mov dword [rsi + 0x20], 1
mov qword [rsi + 8], rax
jmp 0x40338a
lea rdx, str._rustc_f1edd0429582dd29cccacaf50fd134b05593bd9clibrary_std_srciocopy.rs
xor r8d, r8d
call fcn.00459c1c
mov dword [rsi + 0x20], 2
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret
Function at 0x412fec
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x0045f010]
call fcn.00413023
mov ecx, eax
add rsp, 0x28
jmp fcn.0045cc20

Function at 0x413007
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.00413023
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.0045cc18
Function at 0x41cb32
Capabilities:
Hash data using fnv

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x41cc0f
mov r10, rdx
mov rsi, r8
shr rsi, 8
movabs rax, 0xcbf29ce484222325
xor rax, rdx
movabs rdx, 0x100000001b3
imul rax, rdx
mov r11d, 0xff
mov rdi, r8
and rdi, r11
xor rdi, rax
imul rdi, rdx
mov rax, rsi
and rax, r11
xor rax, rdi
imul rax, rdx
xor r14d, r14d
xor edx, edx
div rbx
mov rdi, qword [rcx]
shl rdx, 5
lea rbx, [rdi + rdx]
add rbx, 9
cmp qword [rbx - 9], r10
jne 0x41cbb8
cmp byte [rdi + rdx + 8], r8b
jne 0x41cbb8
cmp byte [rbx], sil
sete r14b
mov r11, qword [rdi + rdx + 0x10]
mov rcx, qword [rcx + 0x18]
test r14b, r14b
je 0x41cbd2
mov eax, 1
cmp qword [rdi + rdx + 0x18], rcx
je 0x41cc02
mov rax, r8
shr rax, 0x10
lea r14, [rdi + rdx]
add rdx, rdi
add rdx, 8
mov qword [r14], r10
mov byte [rdx], r8b
mov byte [rbx], sil
mov dword [rdx + 2], eax
shr rax, 0x20
mov word [rdx + 6], ax
mov qword [rdx + 8], r9
mov qword [rdx + 0x10], rcx
xor eax, eax
mov rdx, r11
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x00463240]
lea r8, str._root_.cargo_registry_src_github.com_1ecc6299db9ec823_regex_0.1.80_src_compile.rs
mov edx, 0x39
call fcn.0040eb00
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rcx, qword [0x0045f050]
test rcx, rcx
jne 0x439a11
lea rcx, [0x0045f050]
call fcn.00454ed0
mov rcx, rax
call fcn.0045cc20
cmp rax, 1
jbe 0x439a2d
mov rdi, rax
cmp dword [rax], 1
jne 0x439a2d
add rdi, 8
jmp 0x439ad8
mov rcx, qword [0x0045f050]
test rcx, rcx
jne 0x439a48
lea rcx, [0x0045f050]
call fcn.00454ed0
mov rcx, rax
call fcn.0045cc20
test rax, rax
je 0x439a5f
mov rsi, rax
cmp rax, 1
jne 0x439aab
xor edi, edi
jmp 0x439ad8
mov ecx, 0x20
mov edx, 8
call fcn.0040c870
test rax, rax
je 0x439ae2
mov rsi, rax
mov qword [rax], 0
lea rax, [0x0045f050]
mov qword [rsi + 0x18], rax
mov rcx, qword [0x0045f050]
test rcx, rcx
jne 0x439aa3
lea rcx, [0x0045f050]
call fcn.00454ed0
mov rcx, rax
mov rdx, rsi
call fcn.0045cc18
lea rdi, [rsi + 8]
cmp qword [rsi], 0
mov rcx, qword [rsi + 0x10]
mov qword [rsi], 1
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
je 0x439ad8
test rcx, rcx
je 0x439ad8
lock sub qword [rcx], 1
jne 0x439ad8
call fcn.00439bd0
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x20
mov edx, 8
call fcn.0040d1c0
ud2
Function at 0x43a6e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x0045f060]
test rcx, rcx
jne 0x43a700
lea rcx, [0x0045f060]
call fcn.00454ed0
mov rcx, rax
call fcn.0045cc20
cmp rax, 1
jbe 0x43a717
mov rsi, rax
cmp dword [rax], 1
je 0x43a7a4
mov rcx, qword [0x0045f060]
test rcx, rcx
jne 0x43a732
lea rcx, [0x0045f060]
call fcn.00454ed0
mov rcx, rax
call fcn.0045cc20
test rax, rax
je 0x43a749
mov rsi, rax
cmp rax, 1
jne 0x43a795
xor esi, esi
jmp 0x43a7a8
mov ecx, 0x18
mov edx, 8
call fcn.0040c870
test rax, rax
je 0x43a7b1
mov rsi, rax
mov qword [rax], 0
lea rax, [0x0045f060]
mov qword [rsi + 0x10], rax
mov rcx, qword [0x0045f060]
test rcx, rcx
jne 0x43a78d
lea rcx, [0x0045f060]
call fcn.00454ed0
mov rcx, rax
mov rdx, rsi
call fcn.0045cc18
mov qword [rsi], 1
mov qword [rsi + 8], 0
add rsi, 8
mov rax, rsi
add rsp, 0x20
pop rsi
ret
mov ecx, 0x18
mov edx, 8
call fcn.0040d1c0
ud2
Function at 0x43c8f0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea rcx, [rsp + 0x90]
lea r9, [rsp + 0x40]
call fcn.00451890
cmp dword [rsp + 0x90], 1
mov rdi, qword [rsp + 0x98]
jne 0x43c99f
cmp dil, 3
jne 0x43c993
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
call qword [rax]
mov rax, qword [rdi + 8]
cmp qword [rax + 8], 0
je 0x43c982
mov rcx, qword [rdi]
mov rdx, qword [rax + 0x10]
call fcn.0040c900
mov rcx, qword [0x0048b110]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov qword [rsi], 0
jmp 0x43cac6
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.00451a60
cmp dword [rsp + 0x40], 1
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
jne 0x43c9fd
cmp r12b, 3
jne 0x43cab7
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
call qword [rax]
mov rax, qword [rbx + 8]
cmp qword [rax + 8], 0
je 0x43c9e7
mov rcx, qword [rbx]
mov rdx, qword [rax + 0x10]
call fcn.0040c900
mov rcx, qword [0x0048b110]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
jmp 0x43cab7
cmp rbx, 2
je 0x43cab7
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x43cab2
mov r14, qword [rsp + 0x40]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x43cad8
mov rbx, 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, rbx
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x43cad8
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x43cabe
call sub.KERNEL32.dll_GetLastError
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov qword [rsi], 0
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
jmp 0x43cabe
Function at 0x454ed0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
lea rcx, [0x0048b0e8]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rbx, qword [rsi]
test rbx, rbx
jne 0x454f5b
mov rbx, qword [rsi + 8]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x454f75
mov edi, eax
test rbx, rbx
je 0x454f4f
mov ecx, 0x18
mov edx, 8
call fcn.0040c870
test rax, rax
je 0x454f8f
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], 0
mov dword [rax + 0x10], edi
mov rax, qword [0x0048b128]
nop word cs:[rax + rax]
nop dword [rax]
mov qword [rcx + 8], rax
lock cmpxchg qword [0x0048b128], rcx
jne 0x454f40
mov ebx, edi
mov rax, rbx
xchg qword [rsi], rax
test edi, edi
je 0x454fa0
lea rcx, [0x0048b0e8]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rax, rbx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_key___c::TLS_OUT_OF_INDEXESlibrary_std_src_syswindows_thread_local_key.rs
lea r8, [0x00482bd8]
mov edx, 0x2e
call fcn.0040eb00
ud2
mov ecx, 0x18
mov edx, 8
call fcn.0040d1c0
ud2
mov byte [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
lea rax, str.assertion_failed:_key___0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
mov qword [rsp + 0x90], 0
lea rax, str._rustc_f1edd0429582dd29cccacaf50fd134b05593bd9clibrary_std_srciocopy.rs
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [0x0040ed30]
mov qword [rsp + 0x48], rax
lea rax, str.fatal_runtime_error:__n
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x50]
call fcn.0043a7d0
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.0043a8e0
mov ecx, 7
int 0x29
ud2
Function at 0x457650
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x34], 0
mov edx, 0xffffffff
cmp r9, rdx
mov r8d, 0xffffffff
cmovb r8d, r9d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x4576a4
mov eax, dword [rsp + 0x34]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x4576d5
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov ecx, eax
call fcn.00454520
cmp al, 0xb
jne 0x4576be
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x4576d5
shl rdi, 0x20
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], 0
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x4577e0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x2c], 0
mov edx, 0xffffffff
cmp r9, rdx
mov r8d, 0xffffffff
cmovb r8d, r9d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rax
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x45782e
mov eax, dword [rsp + 0x2c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x457848
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x458e60
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x80
mov rcx, qword [0x0045f038]
test rcx, rcx
jne 0x458e83
lea rcx, [0x0045f038]
call fcn.00454ed0
mov rcx, rax
call fcn.0045cc20
cmp rax, 1
jbe 0x458e9a
mov rsi, rax
cmp dword [rax], 1
je 0x458f50
mov rcx, qword [0x0045f038]
test rcx, rcx
jne 0x458eb5
lea rcx, [0x0045f038]
call fcn.00454ed0
mov rcx, rax
call fcn.0045cc20
cmp rax, 1
je 0x458f56
mov rsi, rax
test rax, rax
jne 0x458f1c
mov ecx, 0x20
mov edx, 8
call fcn.0040c870
test rax, rax
je 0x458fd5
mov rsi, rax
mov qword [rax], 0
lea rax, [0x0045f038]
mov qword [rsi + 0x18], rax
mov rcx, qword [0x0045f038]
test rcx, rcx
jne 0x458f14
lea rcx, [0x0045f038]
call fcn.00454ed0
mov rcx, rax
mov rdx, rsi
call fcn.0045cc18
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
jne 0x458f64
movaps xmm0, xmmword [rsp + 0x20]
mov qword [rsi], 1
movups xmmword [rsi + 8], xmm0
add rsi, 8
jmp 0x458f58
xor esi, esi
mov rax, rsi
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [fcn.00455fd0]
mov qword [rsp + 0x38], rax
lea rax, str.couldnt_generate_random_bytes:__bH
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.00455640
ud2
mov ecx, 0x20
mov edx, 8
call fcn.0040d1c0
ud2