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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x4abc0b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x4abc0b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x4abc26
cmp eax, 0x42
jne 0x4abc0b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x4abcd6
cmp byte [r9 + r11], 0x5f
jne 0x4abcd6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x4abd3e
mov rcx, rsi
xor edx, edx
call fcn.004a6e20
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.004a6e20
test al, al
jne 0x4abdd8
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x4abc62
lea rdx, [0x00532692]
mov r8d, 1
call fcn.0042b8a0
test al, al
jne 0x4abdd8
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x4abc1a
xor r14d, r14d
lea rbx, [0x005381d9]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x4abc94
cmp byte [rax + rcx], 0x45
je 0x4abe01
sub r14, 1
jb 0x4abcb9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x4abcb9
mov r8d, 2
mov rdx, rbx
call fcn.0042b8a0
test al, al
jne 0x4abdd8
mov rcx, rsi
call fcn.004abe10
test al, al
jne 0x4abdd8
mov rax, qword [rsi]
test rax, rax
jne 0x4abc80
jmp 0x4abc1a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x4abd9f
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x4abd32
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x4abd1c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x4abd0b
add dl, 0xa9
jmp 0x4abd1a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x4abd9f
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x4abd9f
movzx edx, bl
add rax, rdx
jae 0x4abce0
jmp 0x4abd9f
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x4abd9f
cmp rax, rcx
jae 0x4abd9c
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x4abde0
cmp qword [rsi + 0x20], 0
je 0x4abdfa
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.004abbb0
mov edi, eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
cmp al, 2
jne 0x4abc1a
jmp 0x4abdd8
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x4abdef
lea rax, [0x00532659]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.0042b8a0
test al, al
je 0x4abdef
mov dil, 2
jmp 0x4abc1a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x4abdaa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x4abc1a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x4abc1a
Function at 0x4aee7d
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
mov rax, qword [rcx + 8]
test rax, rax
je 0x4aeee6
mov edx, dword [rcx + 0x10]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x4aef1b
mov rdx, qword [rcx + 0x28]
xor r8d, r8d
lea r9, [0x0055f588]
xor r10d, r10d
cmp rdx, r8
je 0x4aef13
movzx r11d, byte [rax + r8]
or r10d, dword [r9 + r11*4]
inc r8
jmp 0x4aef00
mov dword [rsp + 0x98], r10d
mov r14, qword [rcx + 0x38]
mov r15, qword [rcx + 0x40]
lea rsi, [r15*8]
test r15, r15
je 0x4aef66
xor ebx, ebx
mov rax, r15
shr rax, 0x3c
sete al
jne 0x4af03e
mov bl, al
shl rbx, 3
mov rcx, rsi
mov rdx, rbx
call fcn.004569ee
mov rdi, rax
test rax, rax
jne 0x4aef6b
mov rcx, rsi
mov rdx, rbx
jmp 0x4af04f
mov edi, 8
xor eax, eax
mov rcx, rsi
test rcx, rcx
je 0x4aef86
mov rdx, qword [r14 + rax*8]
mov qword [rdi + rax*8], rdx
inc rax
add rcx, 0xfffffffffffffff8
jmp 0x4aef70
lea rcx, [rsp + 0x60]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and qword [rsp + 0x40], 0
lea rdx, [0x00532a86]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x4aefdc
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x4af00b
movaps xmm6, xmmword [rsp + 0x50]
mov ecx, 0x20
mov edx, 8
call fcn.00403ce0
test rax, rax
je 0x4af045
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
movups xmmword [rbx + 0x10], xmm6
xor r14d, r14d
test r15, r15
je 0x4af021
mov r8d, 8
mov rcx, rdi
mov rdx, rsi
call fcn.00434e53
mov rax, r14
mov rdx, rbx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.004042b0
ud2
mov ecx, 0x20
mov edx, 8
call fcn.00404d20
ud2

Function at 0x4af265
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x4af28e
mov rdx, qword [rsp + 0x20]
jmp 0x4af296
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x4afc66
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x4afc92
xor eax, eax
jmp 0x4afc97
call fcn.00456ded
nop
add rsp, 0x38
ret

Function at 0x4afcc1
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call sub.ws2_32.dll_connect
test eax, eax
je 0x4afcde
add rsp, 0x28
jmp fcn.00456ded
xor eax, eax
add rsp, 0x28
ret
Function at 0x4b2cd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x60
mov byte [rsp + 0x37], 0
mov rax, qword [0x005720b0]
cmp rax, 3
jne 0x4b2cf4
cmp byte [rsp + 0x37], 0
je 0x4b2d05
add rsp, 0x60
pop rsi
ret
lea rcx, [rsp + 0x37]
call fcn.004e6670
cmp byte [rsp + 0x37], 0
jne 0x4b2cee
mov ecx, dword [0x004fe120]
test ecx, ecx
je 0x4b2d61
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4b2d7a
mov rsi, rax
cmp byte [rax + 8], 0
je 0x4b2d7a
add rsi, 9
mov rax, qword [0x00572078]
cmp rax, rsi
jne 0x4b2e5d
mov eax, dword [0x005720a8]
inc eax
jne 0x4b2e7d
lea rcx, [0x00533192]
lea r8, [0x005331d8]
mov edx, 0x26
call fcn.0042cff0
ud2
lea rcx, [0x004fe108]
call fcn.004d6970
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4b2d1c
mov ecx, dword [0x004fe120]
test ecx, ecx
je 0x4b2dc8
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x4b2de0
mov rsi, rax
cmp rax, 1
jne 0x4b2e43
lea rax, [0x00536aa8]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_repos_rust_1.70.0_library_std_src_thread_local.rs.
lea r9, [0x00536a88]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.0042d150
ud2
lea rcx, [0x004fe108]
call fcn.004d6970
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x4b2d90
mov rcx, qword [0x00572170]
test rcx, rcx
jne 0x4b2e04
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x4b2f78
mov rcx, rax
mov qword [0x00572170], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x4b2f78
mov rsi, rax
lea rax, [0x004fe108]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x004fe120]
test ecx, ecx
je 0x4b2f3a
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x00572078]
cmp rax, rsi
je 0x4b2d39
lea rcx, [0x00572070]
call sub.kernel32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x4b2cee
mov qword [0x00572078], rsi
mov eax, 1
mov dword [0x005720a8], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov word [rsp + 0x5c], 0
cmp qword [0x00572080], 0
jne 0x4b2f4d
mov qword [0x00572080], 0xffffffffffffffff
lea rcx, [0x00572088]
call fcn.004d5910
cmp qword [0x00572088], 0
je 0x4b2ef1
mov r8, qword [0x00572090]
mov rcx, qword [0x00572170]
xor edx, edx
call sub.kernel32.dll_HeapFree
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x00572098], xmm1
movups xmmword [0x00572088], xmm0
inc qword [0x00572080]
dec dword [0x005720a8]
jne 0x4b2cee
mov qword [0x00572078], 0
lea rcx, [0x00572070]
call sub.kernel32.dll_ReleaseSRWLockExclusive
nop
add rsp, 0x60
pop rsi
ret
lea rcx, [0x004fe108]
call fcn.004d6970
mov ecx, eax
jmp 0x4b2e3b
lea rax, [0x00533178]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedN
lea r9, [0x00536950]
lea r8, [rsp + 0x38]
mov edx, 0x10
call fcn.0042d150
ud2
mov ecx, 0x10
mov edx, 8
call fcn.00404d20
ud2
Function at 0x4b4240
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, 0x1088
call fcn.004fab10
sub rsp, rax
movaps xmmword [rsp + 0x1070], xmm6
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
lea rbx, [rsp + 0x70]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.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, [0x004e52d0]
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 0x4b43db
mov r14d, 0xffffffff
lea rbx, [rsp + 0x40]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x4b42de
cmp dword [rsp + 0x34], 0
jne 0x4b43e0
mov r15d, dword [rsp + 0x38]
test r15, r15
je 0x4b43e0
cmp r15d, 0x1000
ja 0x4b4420
xor r12d, r12d
nop dword [rax]
mov r8, r15
sub r8, r12
lea rdx, [rsp + r12]
add rdx, 0x70
cmp r8, r14
cmovae r8, r14
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 0x4b43db
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x4b4370
cmp dword [rsp + 0x34], 0
jne 0x4b43e0
mov eax, dword [rsp + 0x38]
add r12, rax
cmp r12, r15
je 0x4b439d
jbe 0x4b4320
jmp 0x4b440c
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
lea rdx, [rsp + 0x70]
mov r8d, 0x1000
mov r9, rbx
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x4b42de
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 + 0x1070]
add rsp, 0x1088
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_sys_windows_pipe.rs
mov rcx, r12
mov rdx, r15
call fcn.00431cd0
jmp 0x4b4434
lea r8, str.library_std_src_sys_windows_pipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.004312c0
ud2
Function at 0x4b4e80
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
movaps xmm0, xmmword [0x004ff6d0]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.004c22b0
mov rdi, rdx
test rax, rax
je 0x4b4f3d
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x4b4f31
mov rbx, rdi
dec rbx
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
call qword [rax]
mov rax, qword [rdi + 7]
cmp qword [rax + 8], 0
je 0x4b4f20
mov r8, qword [rbx]
cmp qword [rax + 0x10], 0x11
jb 0x4b4f12
mov r8, qword [r8 - 8]
mov rcx, qword [0x00572170]
xor edx, edx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x00572170]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov qword [rsi], 0
jmp 0x4b50a8
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.004c24c0
cmp dword [rsp + 0x40], 2
jne 0x4b4fc6
mov r14, qword [rsp + 0x48]
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x4b4fa7
lea rbx, [r14 - 1]
mov rcx, qword [r14 - 1]
mov rax, qword [r14 + 7]
call qword [rax]
mov rax, qword [r14 + 7]
cmp qword [rax + 8], 0
je 0x4b4f96
mov r8, qword [rbx]
cmp qword [rax + 0x10], 0x11
jb 0x4b4f88
mov r8, qword [r8 - 8]
mov rcx, qword [0x00572170]
xor edx, edx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x00572170]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0x68]
test rdi, rdi
je 0x4b5018
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 0x4b5094
mov rbx, qword [rsp + 0x40]
jmp 0x4b501a
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 0x4b5083
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 0x4b5083
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x4b50a0
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x4b50a0
call sub.kernel32.dll_GetLastError
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x4bbe50
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 0x4bbe80
test ecx, ecx
jne 0x4bbed0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x4bbe8c
test ecx, ecx
jne 0x4bbed0
mov rcx, rdi
call fcn.004bbd30
movzx eax, al
test bpl, bpl
jne 0x4bbed7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x4bbec3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x004bc048]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x4bbec3.2
xor eax, eax
test bpl, bpl
je 0x4bbe9c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x4bc029
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x4bbf0a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x4bbf89
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 0x4bbf50
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x4bbf6b
inc rax
dec rdi
cmp rax, 1
jne 0x4bbf30
jmp 0x4bbf89
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x4bbf6b
cmp ebx, 0x5c
je 0x4bbf6b
inc rax
dec rdi
cmp rax, 1
jne 0x4bbf50
jmp 0x4bbf89
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x4bc037
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x4bbfb3
mov al, 9
cmp rdx, 2
je 0x4bbfb7
cmp rdx, 1
jne 0x4bbfc7
cmp byte [r8], 0x2e
jne 0x4bbfc7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x4bbfc7
mov al, 0xa
jmp 0x4bbfc7
cmp byte [r8], 0x2e
jne 0x4bbfc7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
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.0x4bbec3.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.0x4bbec3.2
mov ecx, 2
jmp case.0x4bbec3.2
lea r8, str.library_std_src_path.rs
call fcn.00431350
ud2
lea r8, str.library_std_src_path.rs
call fcn.00431350
ud2
Function at 0x4c1b40
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x005721b8]
cmp rax, 3
jne 0x4c1c67
cmp rbx, 0x17f
ja 0x4c1c79
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x4c1bb9
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x4c1bcc
inc rdx
cmp rcx, rdx
jne 0x4c1ba0
mov rdx, r8
test rax, rax
jne 0x4c1bd6
jmp 0x4c1c30
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.00430df0
test rax, rax
jne 0x4c1bd6
jmp 0x4c1c30
mov eax, 1
test rax, rax
je 0x4c1c30
cmp rdx, rbx
jne 0x4c1c30
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x4c1c44
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4c1c57
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x4c1c5a
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.004e6600
cmp rbx, 0x17f
jbe 0x4c1b78
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x4e4590
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.00404530
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x4e45ee
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x4e4665
mov rcx, qword [0x00572170]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp sub.kernel32.dll_HeapFree
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x4e4673
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x4e4665
mov rcx, qword [0x00572170]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
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
jne 0x4e4654
jmp 0x4e4665
Function at 0x4c1ca0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x004fe168]
test ecx, ecx
je 0x4c1cd2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4c1ceb
mov rcx, rax
cmp qword [rax], 0
je 0x4c1ceb
add rcx, 8
jmp 0x4c1dff
lea rcx, [0x004fe150]
call fcn.004d6970
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4c1cc0
mov ecx, dword [0x004fe168]
test ecx, ecx
je 0x4c1de0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x4c1dfd
mov rdi, rax
test rax, rax
jne 0x4c1d79
mov rcx, qword [0x00572170]
test rcx, rcx
jne 0x4c1d36
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x4c1e1c
mov rcx, rax
mov qword [0x00572170], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x4c1e1c
mov rdi, rax
mov qword [rax], 0
lea rax, [0x004fe150]
mov qword [rdi + 0x18], rax
mov ecx, dword [0x004fe168]
test ecx, ecx
je 0x4c1e09
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x4c1d96
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x4c1dcb
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 0x4c1dc6
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x4c1dcb
call fcn.004d68b0
mov qword [rdi], 1
lea rcx, [rdi + 8]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rdx
jmp 0x4c1dff
lea rcx, [0x004fe150]
call fcn.004d6970
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x4c1d0a
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x004fe150]
call fcn.004d6970
mov ecx, eax
jmp 0x4c1d71
mov ecx, 0x20
mov edx, 8
call fcn.00404d20
ud2

Function at 0x4c25d0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.004d6c50
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x4c2683
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.004d4900
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x4c2683
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x4c2657
test rsi, rsi
je 0x4c2681
mov rcx, qword [0x00572170]
xor esi, esi
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
jmp 0x4c2683
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x4c267c
mov rcx, qword [0x00572170]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rsi, rbx
jmp 0x4c2683
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret