joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55d750
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x55d7ce
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x55d80f
cmp dword [rsp + 0x2c], 0
je 0x55d7f3
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x55d837
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x006be160]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x006be160], rsi
jne 0x55d7b0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x55d805
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x55d883
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x55d7f8
mov edi, dword [rsp + 0x28]
jmp 0x55d805
mov edi, dword [rsi + 0x18]
jmp 0x55d803
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x006768a8]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.0055d8c0
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.unknownassertion_failed:_success_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_whoami_1.4.1_src_windows.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.00463750
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.unknownassertion_failed:_success_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_whoami_1.4.1_src_windows.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.0055d920
ud2
Function at 0x55de70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x005ab190]
test ecx, ecx
je 0x55df0f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x55de99
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x55defe
mov ecx, dword [0x005ab190]
test ecx, ecx
je 0x55df22
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x55df04
mov rsi, rax
test rax, rax
jne 0x55def8
movzx eax, byte [0x006be1f0]
mov ecx, 0x10
mov edx, 8
call fcn.00417db0
test rax, rax
je 0x55df45
mov rsi, rax
lea rax, [0x005ab178]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x005ab190]
test ecx, ecx
je 0x55df35
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x55df06
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x005ab178]
call fcn.0055d750
mov ecx, eax
jmp 0x55de85
lea rcx, [0x005ab178]
call fcn.0055d750
mov ecx, eax
jmp 0x55dea5
lea rcx, [0x005ab178]
call fcn.0055d750
mov ecx, eax
jmp 0x55def0
mov ecx, 8
mov edx, 0x10
call fcn.0043b510
ud2
Function at 0x55f3c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x005ab150]
test ecx, ecx
je 0x55f47d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x55f3f0
cmp qword [rax + 8], 0
je 0x55f3f0
add rax, 0x10
jmp 0x55f477
mov ecx, dword [0x005ab150]
test ecx, ecx
je 0x55f490
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x55f475
mov rsi, rax
test rax, rax
jne 0x55f45b
movzx eax, byte [0x006be1f0]
mov ecx, 0x20
mov edx, 8
call fcn.00417db0
test rax, rax
je 0x55f4b3
mov rsi, rax
lea rax, [0x005ab138]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x005ab150]
test ecx, ecx
je 0x55f4a3
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x55f477
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x005ab138]
call fcn.0055d750
mov ecx, eax
jmp 0x55f3d5
lea rcx, [0x005ab138]
call fcn.0055d750
mov ecx, eax
jmp 0x55f400
lea rcx, [0x005ab138]
call fcn.0055d750
mov ecx, eax
jmp 0x55f453
mov ecx, 8
mov edx, 0x20
call fcn.0043b510
ud2
Function at 0x562630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x562660
test ecx, ecx
jne 0x5626b0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x56266c
test ecx, ecx
jne 0x5626b0
mov rcx, rdi
call fcn.00562510
movzx eax, al
test bpl, bpl
jne 0x5626b7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x5626a3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x00562828]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x5626a3.2
xor eax, eax
test bpl, bpl
je 0x56267c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x562809
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x5626ea
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x562769
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x562730
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x56274b
inc rax
dec rdi
cmp rax, 1
jne 0x562710
jmp 0x562769
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x56274b
cmp ebx, 0x5c
je 0x56274b
inc rax
dec rdi
cmp rax, 1
jne 0x562730
jmp 0x562769
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x562817
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x562793
mov al, 9
cmp rdx, 2
je 0x562797
cmp rdx, 1
jne 0x5627a7
cmp byte [r8], 0x2e
jne 0x5627a7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x5627a7
mov al, 0xa
jmp 0x5627a7
cmp byte [r8], 0x2e
jne 0x5627a7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x5626a3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x5626a3.2
mov ecx, 2
jmp case.0x5626a3.2
lea r8, [0x00674fc8]
call fcn.004642d0
ud2
lea r8, [0x00674fe0]
call fcn.004642d0
ud2
Function at 0x562a90
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x48], xmm6
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.0057c2d0
mov rsi, rdx
test rax, rax
je 0x562b47
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x562b3b
test rax, rax
je 0x562b3b
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x562b2e
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.00417e40
mov edx, 8
mov rcx, rsi
call fcn.00417e40
mov qword [rdi], 0
jmp 0x562cb9
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x562bf6
test byte [rsp + 0x41], 4
je 0x562b9f
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov rcx, rsi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x562bf6
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rsi, rsi
je 0x562c22
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, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x562ca5
mov rbx, qword [rsp + 0x40]
jmp 0x562c24
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
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 0x562c94
mov r14, rax
shl r12, 0x20
or r12, r15
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 sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x562c94
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x562cb1
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x562cb1
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x57cc10
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
movaps xmmword [rsp + 0x480], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x80]
call fcn.0055fc90
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x57cd79
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov esi, 0xffffffff
xor r15d, r15d
xor edi, edi
cmp r8, 0x201
jae 0x57ccd0
jmp 0x57ccaf
jae 0x57cd8f
cmp r8, 0x201
jae 0x57ccd0
mov r13d, 0x200
lea r12, [rsp + 0x80]
mov rbp, r8
jmp 0x57cd16
sub r8, rdi
sub r15, rdi
cmp r15, r8
jae 0x57ccf7
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.00560260
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r14, qword [rsp + 0x50]
cmp r14, rsi
mov edi, 0xffffffff
cmovb rdi, r14
mov qword [rsp + 0x58], rdi
mov r15, r14
mov r13, rdi
mov r12, qword [rsp + 0x20]
mov rbp, rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, r12
mov r8d, ebp
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x57cd40
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x57ce81
mov r8d, ebx
cmp rbp, r8
jne 0x57cca0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x57cea1
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
cmp r8, 0x201
jb 0x57ccaf
jmp 0x57ccd0
lea rcx, [rsp + 0x80]
call fcn.0055fe60
mov byte [rsi + 0x18], 2
jmp 0x57ce65
cmp r13, r8
jb 0x57cebb
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.00561110
mov r12, qword [rsp + 0x60]
movups xmm6, xmmword [rsp + 0x68]
movzx ebx, byte [rsp + 0x78]
mov eax, dword [rsp + 0x79]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x2b], eax
test r14, r14
je 0x57cdd8
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.00417e40
cmp bl, 2
jne 0x57ce31
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x18], 2
mov eax, r12d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x57ce4e
test rax, rax
je 0x57ce4e
lea rbx, [r12 - 1]
mov r14, qword [r12 - 1]
mov rsi, qword [r12 + 7]
mov rcx, r14
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x57ce22
mov rdx, qword [rsi + 0x10]
mov rcx, r14
call fcn.00417e40
mov edx, 8
mov rcx, rbx
call fcn.00417e40
jmp 0x57ce4e
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov rdx, qword [rsp + 0x38]
mov dword [rdx + 0x1c], ecx
mov dword [rdx + 0x19], eax
mov qword [rdx], r12
movups xmmword [rdx + 8], xmm6
mov byte [rdx + 0x18], bl
cmp qword [rsp + 0x40], 0
je 0x57ce65
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.00417e40
movaps xmm6, xmmword [rsp + 0x480]
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
mov r12d, eax
shl r12, 0x20
or r12, 2
mov bl, 2
test r14, r14
jne 0x57cdc9
jmp 0x57cdd8
lea rcx, [0x0069ec92]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.00464920
jmp 0x57ced0
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.00464560
ud2
Function at 0x57f7e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x00675fc0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x57f84a
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x57f859
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x57f890
cmp eax, 0x103
je 0x57f89a
test eax, eax
js 0x57f876
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x57f890
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x00676028]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.0055ca80
mov rcx, rax
call fcn.0055cb80
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x005ab1b0]
test ecx, ecx
je 0x582d90
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x582ce4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x582ce4
add rdi, 0x10
jmp 0x582d86
mov ecx, dword [0x005ab1b0]
test ecx, ecx
je 0x582da3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x582d84
mov rsi, rax
test rax, rax
jne 0x582d53
movzx eax, byte [0x006be1f0]
mov ecx, 0x18
mov edx, 8
call fcn.00417db0
test rax, rax
je 0x582dc6
mov rsi, rax
lea rax, [0x005ab198]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x005ab1b0]
test ecx, ecx
je 0x582db6
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
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 0x582d86
test rcx, rcx
je 0x582d86
lock dec qword [rcx]
jne 0x582d86
call fcn.00582de0
jmp 0x582d86
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x005ab198]
call fcn.0055d750
mov ecx, eax
jmp 0x582cc6
lea rcx, [0x005ab198]
call fcn.0055d750
mov ecx, eax
jmp 0x582cf4
lea rcx, [0x005ab198]
call fcn.0055d750
mov ecx, eax
jmp 0x582d4b
mov ecx, 8
mov edx, 0x18
call fcn.0043b510
ud2
Function at 0x58ae00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.0055fc90
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x58ae75
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.0058af80
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x58ae83
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x58aea3
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x58ae94
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.0055fe60
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x58ae94
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.00417e40
Function at 0x58c730
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
movzx eax, byte [0x006be1f0]
mov ecx, 0x10
mov edx, 8
call fcn.00417db0
test rax, rax
je 0x58c7e7
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x0058ca70]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x58c7da
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x58c7b9
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.00417e40
mov edx, 8
mov rcx, rsi
call fcn.00417e40
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.0043b510
ud2

Function at 0x58ccf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call fcn.005a8720
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rsp + 0x30], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x30]
mov qword [rsp + 0x58], r13
lea rbp, [0x00584380]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x58ce85
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x60]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x58cd83
cmp dword [rsp + 0x34], 0
jne 0x58ce8a
mov r15d, dword [rsp + 0x38]
test r15, r15
je 0x58ce8a
cmp r15d, 0x1000
ja 0x58ceca
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x58ceb6
lea rdx, [rsp + r12]
add rdx, 0x60
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x58ce85
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x58ce20
cmp dword [rsp + 0x34], 0
jne 0x58ce8a
mov eax, dword [rsp + 0x38]
add r12, rax
cmp r12, r15
jne 0x58cdd0
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x58cd83
call sub.KERNEL32.dll_GetLastError
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.00465990
jmp 0x58cede
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.00464560
ud2
Function at 0x58cf20
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 0x58cf56
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.0057d810]
mov qword [rsp + 0x48], rax
lea rax, [0x006764e0]
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.00463750
ud2

Function at 0x58ea20
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x58eb25
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x58ea58
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x58eb0e
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x58eaf0
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x58eaad
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x58eac9
jmp 0x58eabe
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x58eac4
cmp eax, 0x6d
jne 0x58eae0
mov byte [rsi + 1], 0
jmp 0x58ead4
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x58ead6
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.00562940
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x58ea65
mov r8d, 0x10
mov rcx, rbx
call fcn.00562940
mov rax, qword [rbx + 8]
jmp 0x58ea58
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.0058eb40
ud2
Function at 0x594a40
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 [0x005ab1d0]
test ecx, ecx
je 0x594b39
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x594a70
cmp qword [rax + 8], 0
je 0x594a70
add rax, 0x10
jmp 0x594b33
mov ecx, dword [0x005ab1d0]
test ecx, ecx
je 0x594b4c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x594b13
mov rsi, rax
test rax, rax
jne 0x594ae3
movzx eax, byte [0x006be1f0]
mov ecx, 0x20
mov edx, 8
call fcn.00417db0
test rax, rax
je 0x594b72
mov rsi, rax
lea rax, [0x005ab1b8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x005ab1d0]
test ecx, ecx
je 0x594b5f
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 0x594b17
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x594b1f
xor eax, eax
jmp 0x594b33
call fcn.0058cf20
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, [0x005ab1b8]
call fcn.0055d750
mov ecx, eax
jmp 0x594a55
lea rcx, [0x005ab1b8]
call fcn.0055d750
mov ecx, eax
jmp 0x594a80
lea rcx, [0x005ab1b8]
call fcn.0055d750
mov ecx, eax
jmp 0x594adb
mov ecx, 8
mov edx, 0x20
call fcn.0043b510
ud2

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov r14, rcx
lea rcx, [0x005ab1e0]
call fcn.0047906d
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x596c00
mov rbx, rax
cmp qword [rax + 8], 0
je 0x596c00
add rbx, 0x10
jmp 0x596cdc
lea rsi, [0x005ab1e0]
mov rcx, rsi
call fcn.0047906d
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x596c7d
mov rbx, rax
test rax, rax
jne 0x596c50
mov ecx, 0x60
mov edx, 8
call fcn.004ad1f5
mov rbx, rax
mov qword [rax], rsi
and qword [rax + 8], 0
mov rcx, rsi
call fcn.0047906d
mov ecx, eax
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
lea r15, [rbx + 8]
test r14, r14
je 0x596c8b
lea rax, [rsp + 0x28]
mov ecx, 0xb
mov rdi, rax
mov rsi, r14
rep movsq qword [rdi], qword [rsi]
and qword [r14], 0
cmp qword [rax], 0
je 0x596c81
lea rsi, [rsp + 0x30]
jmp 0x596c92
xor ebx, ebx
jmp 0x596cdc
lea rcx, [rsp + 0x28]
call fcn.00595c60
lea rsi, [0x006789b8]
lea rdi, [rsp + 0x80]
mov ecx, 0xa
rep movsq qword [rdi], qword [rsi]
lea rax, [rsp + 0x28]
mov ecx, 0xb
mov rdi, rax
mov rsi, r15
rep movsq qword [rdi], qword [rsi]
mov qword [rbx + 8], 1
add rbx, 0x10
lea rsi, [rsp + 0x80]
mov ecx, 0xa
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov rcx, rax
call fcn.00595c60
mov rax, rbx
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret