joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x140023cbb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140023cbb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140023cd6
cmp eax, 0x42
jne 0x140023cbb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140023d86
cmp byte [r8 + r11], 0x5f
jne 0x140023d86
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140023dee
mov rcx, rsi
xor edx, edx
call fcn.14001f740
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001f740
test al, al
jne 0x140023e81
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140023d12
lea rdx, [0x140120763]
mov r8d, 1
call fcn.14000df40
test al, al
jne 0x140023e81
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140023cca
xor r14d, r14d
lea rbx, [0x140120ad1]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140023d44
cmp byte [rax + rcx], 0x45
je 0x140023ea3
sub r14, 1
jb 0x140023d69
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140023d69
mov r8d, 2
mov rdx, rbx
call fcn.14000df40
test al, al
jne 0x140023e81
mov rcx, rsi
call fcn.140020f60
test al, al
jne 0x140023e81
mov rax, qword [rsi]
test rax, rax
jne 0x140023d30
jmp 0x140023cca
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x140023e48
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x140023de2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140023dcc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140023dbb
add dl, 0xa9
jmp 0x140023dca
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140023e48
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140023e48
movzx edx, bl
add rax, rdx
jae 0x140023d90
jmp 0x140023e48
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140023e48
cmp rax, rcx
jae 0x140023e45
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140023e9b
cmp qword [rsi + 0x20], 0
je 0x140023e94
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140023c60
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140023ccc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140023e89
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x140120ab0]
test r9b, r9b
cmovne rdx, rax
call fcn.14000df40
test al, al
je 0x140023e89
mov dil, 2
jmp 0x140023cca
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140023cca
mov dil, 1
xor r9d, r9d
jmp 0x140023e4a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140023cca
Function at 0x14002c3c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14002c445
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 0x14002c486
cmp dword [rsp + 0x2c], 0
je 0x14002c46a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14002c4ac
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401521d8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401521d8], rsi
jne 0x14002c420
mov byte [0x1401521d0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14002c47c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14002c4f6
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14002c46f
mov edi, dword [rsp + 0x28]
jmp 0x14002c47c
mov edi, dword [rsi + 0x18]
jmp 0x14002c47a
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, [0x140124990]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.14002c930
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, [0x140127358]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.14000d3f0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x140127358]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14002c970
int3
Function at 0x14002c810
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400d80d0]
test ecx, ecx
je 0x14002c8e9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14002c844
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14002c844
add rdi, 0x10
jmp 0x14002c8df
mov ecx, dword [0x1400d80d0]
test ecx, ecx
je 0x14002c8fc
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14002c8dd
mov rsi, rax
test rax, rax
jne 0x14002c8ac
movzx eax, byte [0x140152200]
mov edx, 0x18
xor ecx, ecx
call fcn.140050160
test rax, rax
je 0x14002c91f
mov rsi, rax
lea rax, [0x1400d80b8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d80d0]
test ecx, ecx
je 0x14002c90f
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 0x14002c8df
test rcx, rcx
je 0x14002c8df
lock dec qword [rcx]
jne 0x14002c8df
call fcn.14002c370
jmp 0x14002c8df
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400d80b8]
call fcn.14002c3c0
mov ecx, eax
jmp 0x14002c826
lea rcx, [0x1400d80b8]
call fcn.14002c3c0
mov ecx, eax
jmp 0x14002c854
lea rcx, [0x1400d80b8]
call fcn.14002c3c0
mov ecx, eax
jmp 0x14002c8a4
mov ecx, 8
mov edx, 0x18
call fcn.14000c620
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400d80f0]
test ecx, ecx
je 0x14002cf9c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14002cf29
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14002cf8b
mov ecx, dword [0x1400d80f0]
test ecx, ecx
je 0x14002cfaf
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14002cf91
mov rsi, rax
test rax, rax
jne 0x14002cf85
movzx eax, byte [0x140152200]
mov edx, 0x10
xor ecx, ecx
call fcn.140050160
test rax, rax
je 0x14002cfd2
mov rsi, rax
lea rax, [0x1400d80d8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400d80f0]
test ecx, ecx
je 0x14002cfc2
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14002cf93
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400d80d8]
call fcn.14002c3c0
mov ecx, eax
jmp 0x14002cf15
lea rcx, [0x1400d80d8]
call fcn.14002c3c0
mov ecx, eax
jmp 0x14002cf35
lea rcx, [0x1400d80d8]
call fcn.14002c3c0
mov ecx, eax
jmp 0x14002cf7d
mov ecx, 8
mov edx, 0x10
call fcn.14000c620
int3
Function at 0x14002d590
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140124708]
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_NtWriteFile
cmp eax, 0x103
jne 0x14002d601
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002d637
test eax, eax
js 0x14002d612
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002d62a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.14002c790
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14002bc60
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400d80b0]
test ecx, ecx
je 0x14002dbfa
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14002db70
cmp qword [rax + 8], 0
je 0x14002db70
add rax, 0x10
jmp 0x14002dbf4
mov ecx, dword [0x1400d80b0]
test ecx, ecx
je 0x14002dc0d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14002dbf2
mov rsi, rax
test rax, rax
jne 0x14002dbd8
movzx eax, byte [0x140152200]
mov edx, 0x20
xor ecx, ecx
call fcn.140050160
test rax, rax
je 0x14002dc30
mov rsi, rax
lea rax, [0x1400d8098]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d80b0]
test ecx, ecx
je 0x14002dc20
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 0x14002dbf4
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400d8098]
call fcn.14002c3c0
mov ecx, eax
jmp 0x14002db55
lea rcx, [0x1400d8098]
call fcn.14002c3c0
mov ecx, eax
jmp 0x14002db80
lea rcx, [0x1400d8098]
call fcn.14002c3c0
mov ecx, eax
jmp 0x14002dbd0
mov ecx, 8
mov edx, 0x20
call fcn.14000c620
int3
Function at 0x14002f630
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
mov ebx, 0xffffffff
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jae 0x14002f6b0
jmp 0x14002f69f
jae 0x14002f755
cmp r8, 0x201
jae 0x14002f6b0
mov r15d, 0x200
lea r12, [rsp + 0x68]
mov r13, r8
jmp 0x14002f6f7
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x14002f6d7
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.14002e590
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rdi, rbx
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
mov rsi, rdi
mov r15, r14
mov r12, qword [rsp + 0x20]
mov r13, r14
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, r13d
mov rdx, r12
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x14002f71c
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14002f7aa
mov r8d, ebp
cmp r13, r8
jne 0x14002f690
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002f7d4
add r13, r13
cmp r13, rbx
cmovae r13, rbx
mov r8, r13
cmp r8, 0x201
jb 0x14002f69f
jmp 0x14002f6b0
cmp r15, r8
jb 0x14002f7ee
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.140030010
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rax, qword [rsp + 0x28]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x14002f795
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.14000c1a0
nop
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
test rdi, rdi
jne 0x14002f786
jmp 0x14002f795
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14000e260
jmp 0x14002f803
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14000dec0
ud2
Function at 0x140031730
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.140049eb0
mov rdi, rdx
test rax, rax
je 0x1400317c4
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.14002bbc0
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14004a100
cmp dword [rsp + 0x38], 2
jne 0x1400317f3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14003183f
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14003186b
lea rcx, [rsp + 0x88]
call fcn.14002bbc0
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x1400318c9
mov qword [rsp + 0x80], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x140031945
mov rbx, qword [rsp + 0x80]
jmp 0x1400318cb
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 0x140031934
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x140031934
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140031971
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x140031971
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.14002bbc0
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x1400317b3
Function at 0x14004e960
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14000c7c0
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x14004e9ed
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
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 sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x14004ea1f
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14004ea32
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x14004ea4a
mov rcx, qword [rsp + 0x38]
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14000c1a0
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 0x14004ea4a
mov edx, 1
mov rcx, rdi
call fcn.14000c1a0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14004fce0
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 0x14004fd16
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.14004b160]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.14000d3f0
ud2
Function at 0x1400671d0
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.14005a8b0
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.14005a8b0
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 0x140067240
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140152d64]
mov rbx, rcx
test esi, esi
jle 0x140067370
mov rax, qword [0x140152d68]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14006728b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140067315
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140067270
mov rcx, rbx
call fcn.140067c90
mov rdi, rax
test rax, rax
je 0x140067392
mov rax, qword [0x140152d68]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140067dd0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140152d68]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140067377
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14006730e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140067320
add dword [0x140152d64], 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 [0x140152d68]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14006730e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400671d0
nop dword [rax]
xor esi, esi
jmp 0x140067298
mov rax, qword [0x140152d68]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400671d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400671d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140067900
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140152dc0]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x140152da0]
test rbx, rbx
je 0x14006795c
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 0x140067953
test rsi, rsi
je 0x140067953
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140067938
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 0x140067c90
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140067d10
Capabilities:
Parse pe header

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

Function at 0x140067dd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140135ff0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140067def
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140067df8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14006e190
Capabilities:
Authenticate hmac

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x18]
add eax, eax
mov rdi, rdx
mov edx, dword [rcx + 0x20]
mov rbx, rcx
mov ebp, r8d
lea rcx, [rax + rdx + 0x18]
mov rax, qword [0x140135e80]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x14006e298
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsi + 0x10], rax
cmp dword [rbx + 0x1c], ebp
jae 0x14006e206
call qword [rbx]
mov r8d, ebp
mov rdx, rdi
mov rcx, qword [rsi + 8]
call qword [rbx + 8]
mov edi, dword [rbx + 0x18]
add rdi, qword [rsi + 0x10]
mov rdx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rsi + 8]
xor r12d, r12d
lea r14, [rsp + 0x2f]
call qword [rbx]
mov rcx, qword [rsi + 0x10]
call qword [rbx]
mov r13d, ebp
cmp r12, r13
jae 0x14006e25d
mov al, byte [rdi + r12]
mov rcx, qword [rsi + 8]
mov r8d, 1
mov rdx, r14
xor eax, 0x36
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
mov al, byte [rdi + r12]
mov rcx, qword [rsi + 0x10]
mov rdx, r14
mov r8d, 1
inc r12
xor eax, 0x5c
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
jmp 0x14006e21a
lea rdi, [0x14013d040]
lea rbp, [0x14013d050]
mov eax, dword [rbx + 0x1c]
cmp r13, rax
jae 0x14006e298
mov rcx, qword [rsi + 8]
mov r8d, 1
mov rdx, rdi
inc r13
call qword [rbx + 8]
mov rcx, qword [rsi + 0x10]
mov r8d, 1
mov rdx, rbp
call qword [rbx + 8]
jmp 0x14006e26b
mov rax, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret