joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454990
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 0x4549c0
test ecx, ecx
jne 0x454a10
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x4549cc
test ecx, ecx
jne 0x454a10
mov rcx, rdi
call fcn.00454870
movzx eax, al
test bpl, bpl
jne 0x454a17
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x454a03.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x00454b88]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x454a03.2
xor eax, eax
test bpl, bpl
je 0x4549dc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x454b69
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x454a4a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x454ac9
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 0x454a90
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x454aab
inc rax
dec rdi
cmp rax, 1
jne 0x454a70
jmp 0x454ac9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x454aab
cmp ebx, 0x5c
je 0x454aab
inc rax
dec rdi
cmp rax, 1
jne 0x454a90
jmp 0x454ac9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x454b77
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x454af3
mov al, 9
cmp rdx, 2
je 0x454af7
cmp rdx, 1
jne 0x454b07
cmp byte [r8], 0x2e
jne 0x454b07
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x454b07
mov al, 0xa
jmp 0x454b07
cmp byte [r8], 0x2e
jne 0x454b07
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.0x454a03.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.0x454a03.2
mov ecx, 2
jmp case.0x454a03.2
lea r8, [0x004a43b0]
call fcn.00428b00
ud2
lea r8, [0x004a43c8]
call fcn.00428b00
ud2
Function at 0x454e10
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 rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
movaps xmm0, xmmword [0x00495380]
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.0046cf90
mov rsi, rdx
test rax, rax
je 0x454eb9
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x454ead
mov rbx, rsi
dec rbx
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
cmp qword [rax + 8], 0
je 0x454ea0
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.004244e0
mov edx, 8
mov rcx, rbx
call fcn.004244e0
mov qword [rdi], 0
jmp 0x455010
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.0046d1a0
cmp dword [rsp + 0x40], 2
jne 0x454f2e
mov r14, qword [rsp + 0x48]
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x454f0f
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 0x454f02
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.004244e0
mov edx, 8
mov rcx, rbx
call fcn.004244e0
mov qword [rdi], 0
mov rcx, rsi
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 rsi, rsi
je 0x454f80
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 0x454ffc
mov rbx, qword [rsp + 0x40]
jmp 0x454f82
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 0x454feb
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 0x454feb
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x455008
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x455008
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x471ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x004940d8]
test ecx, ecx
je 0x471fa2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x471f03
mov rdi, rax
cmp qword [rax], 0
je 0x471f03
add rdi, 8
jmp 0x471f98
mov ecx, dword [0x004940d8]
test ecx, ecx
je 0x471fb5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x471f96
mov rsi, rax
test rax, rax
jne 0x471f67
mov ecx, 0x18
mov edx, 8
call fcn.00424450
test rax, rax
je 0x471fd8
mov rsi, rax
mov qword [rax], 0
lea rax, [0x004940c0]
mov qword [rsi + 0x10], rax
mov ecx, dword [0x004940d8]
test ecx, ecx
je 0x471fc8
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 8]
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 1
mov qword [rsi + 8], 0
je 0x471f98
test rcx, rcx
je 0x471f98
lock dec qword [rcx]
jne 0x471f98
call fcn.00472000
jmp 0x471f98
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004940c0]
call fcn.0044fe50
mov ecx, eax
jmp 0x471ee6
lea rcx, [0x004940c0]
call fcn.0044fe50
mov ecx, eax
jmp 0x471f13
lea rcx, [0x004940c0]
call fcn.0044fe50
mov ecx, eax
jmp 0x471f5f
mov ecx, 0x18
mov edx, 8
call fcn.00426000
ud2
Function at 0x4724e0
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 [0x004b8130]
cmp rax, 3
jne 0x472607
cmp rbx, 0x17f
ja 0x472619
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call sub.ntdll.dll_memcpy
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x472559
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x47256c
inc rdx
cmp rcx, rdx
jne 0x472540
mov rdx, r8
test rax, rax
jne 0x472576
jmp 0x4725d0
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.00429870
test rax, rax
jne 0x472576
jmp 0x4725d0
mov eax, 1
test rax, rax
je 0x4725d0
cmp rdx, rbx
jne 0x4725d0
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 0x4725e4
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4725f7
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x4725fa
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.00472ba0
cmp rbx, 0x17f
jbe 0x472518
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x472c00
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.004261e0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x472c5a
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 0x472ce2
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.004244e0
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 0x472cb7
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x472cca
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 0x472ce2
mov edx, 1
mov rcx, rdi
call fcn.004244e0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x472c00
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 [0x004b8130]
cmp rax, 3
jne 0x472607
cmp rbx, 0x17f
ja 0x472619
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call sub.ntdll.dll_memcpy
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x472559
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x47256c
inc rdx
cmp rcx, rdx
jne 0x472540
mov rdx, r8
test rax, rax
jne 0x472576
jmp 0x4725d0
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.00429870
test rax, rax
jne 0x472576
jmp 0x4725d0
mov eax, 1
test rax, rax
je 0x4725d0
cmp rdx, rbx
jne 0x4725d0
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 0x4725e4
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4725f7
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x4725fa
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.00472ba0
cmp rbx, 0x17f
jbe 0x472518
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x472c00
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.004261e0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x472c5a
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 0x472ce2
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.004244e0
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 0x472cb7
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x472cca
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 0x472ce2
mov edx, 1
mov rcx, rdi
call fcn.004244e0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x479960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.00479830
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x4799a4
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4799f7
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x4799ed
mov rbx, qword [rsp + 0x20]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x4799e5
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x4799d8
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.004244e0
mov edx, 8
mov rcx, rdi
call fcn.004244e0
mov qword [rsi + 8], 0
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x4799ed
mov edx, 2
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.004244e0
Function at 0x47b230
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov ecx, 0x10
mov edx, 8
call fcn.00424450
test rax, rax
je 0x47b2eb
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x0047b5b0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x47b2de
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x47b2bd
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.004244e0
mov edx, 8
mov rcx, rsi
call fcn.004244e0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 0x10
mov edx, 8
call fcn.00426000
ud2
Function at 0x47b850
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.00491190
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.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, [0x00473480]
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 0x47b9e5
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x70]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x47b8ed
cmp dword [rsp + 0x34], 0
jne 0x47b9ea
mov r15d, dword [rsp + 0x38]
test r15, r15
je 0x47b9ea
cmp r15d, 0x1000
ja 0x47ba2a
xor r12d, r12d
nop dword [rax]
cmp r12, r15
ja 0x47ba16
lea rdx, [rsp + r12]
add rdx, 0x70
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 0x47b9e5
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x47b980
cmp dword [rsp + 0x34], 0
jne 0x47b9ea
mov eax, dword [rsp + 0x38]
add r12, rax
cmp r12, r15
jne 0x47b930
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 0x47b8ed
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_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.004295e0
jmp 0x47ba3e
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.00428b90
ud2

Function at 0x47ba90
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 0x47bac6
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, [0x0046e6a0]
mov qword [rsp + 0x48], rax
lea rax, [0x004a5848]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
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.00428180
ud2
Function at 0x480da0
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 [0x004940b8]
test ecx, ecx
je 0x480eb5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x480dd6
mov rcx, rax
cmp qword [rax], 0
je 0x480dd6
add rcx, 8
jmp 0x480eab
mov ecx, dword [0x004940b8]
test ecx, ecx
je 0x480ec8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x480e8f
mov rdi, rax
test rax, rax
jne 0x480e42
mov ecx, 0x20
mov edx, 8
call fcn.00424450
test rax, rax
je 0x480eee
mov rdi, rax
mov qword [rax], 0
lea rax, [0x004940a0]
mov qword [rdi + 0x18], rax
mov ecx, dword [0x004940b8]
test ecx, ecx
je 0x480edb
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x480e5f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x480e98
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 0x480e93
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x480e98
xor ecx, ecx
jmp 0x480eab
call fcn.0047ba90
mov qword [rdi], 1
lea rcx, [rdi + 8]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rdx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x004940a0]
call fcn.0044fe50
mov ecx, eax
jmp 0x480db9
lea rcx, [0x004940a0]
call fcn.0044fe50
mov ecx, eax
jmp 0x480de6
lea rcx, [0x004940a0]
call fcn.0044fe50
mov ecx, eax
jmp 0x480e3a
mov ecx, 0x20
mov edx, 8
call fcn.00426000
ud2
Function at 0x480f80
Capabilities:
Copy file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rbx, r9
mov rdi, rcx
lea rcx, [rsp + 0x38]
call fcn.00451fe0
mov r14, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x4810a7
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.0046d2b0
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x4810a7
mov r8, qword [rsp + 0xd0]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x38]
mov rdx, rbx
call fcn.00451fe0
mov r15, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x4810b4
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.0046d2b0
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x4810b4
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x00481130]
lea r9, [rsp + 0x38]
mov rcx, rsi
mov rdx, rbx
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x4810c1
mov rax, qword [rsp + 0x38]
mov qword [rdi + 8], rax
mov qword [rdi], 0
test r15, r15
jne 0x4810de
jmp 0x4810eb
mov qword [rdi + 8], r14
mov qword [rdi], 1
jmp 0x4810fd
mov qword [rdi + 8], r15
mov qword [rdi], 1
jmp 0x4810eb
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rdi + 8], rax
mov qword [rdi], 1
test r15, r15
je 0x4810eb
mov edx, 2
mov rcx, rbx
call fcn.004244e0
test r14, r14
je 0x4810fd
mov edx, 2
mov rcx, rsi
call fcn.004244e0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x4825b7
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x482653
mov rdi, rax
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x482638
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.ntdll.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.00481f46
mov rcx, rbx
mov rdx, r14
call fcn.004828da
add r13, 8
jmp 0x482608
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x482664
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x487dce
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov r14, rcx
lea rcx, [0x004941b8]
call fcn.0043ec9b
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x487e08
mov rbx, rax
cmp qword [rax], 0
je 0x487e08
add rbx, 8
jmp 0x487ed9
lea rsi, [0x004941b8]
mov rcx, rsi
call fcn.0043ec9b
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x487e81
mov rbx, rax
test rax, rax
jne 0x487e58
mov ecx, 0x60
mov edx, 8
call fcn.00487ee9
mov rbx, rax
and qword [rax], 0
mov qword [rax + 0x58], rsi
mov rcx, rsi
call fcn.0043ec9b
mov ecx, eax
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test r14, r14
je 0x487e8f
lea rax, [rsp + 0x20]
mov ecx, 0xb
mov rdi, rax
mov rsi, r14
rep movsq qword [rdi], qword [rsi]
and qword [r14], 0
cmp qword [rax], 0
je 0x487e85
lea rsi, [rsp + 0x28]
jmp 0x487e96
xor ebx, ebx
jmp 0x487ed9
lea rcx, [rsp + 0x20]
call fcn.00486d86
lea rsi, [0x004a8250]
lea rdi, [rsp + 0x78]
mov ecx, 0xa
rep movsq qword [rdi], qword [rsi]
lea rax, [rsp + 0x20]
mov ecx, 0xb
mov rdi, rax
mov rsi, rbx
rep movsq qword [rdi], qword [rsi]
mov qword [rbx], 1
add rbx, 8
lea rsi, [rsp + 0x78]
mov ecx, 0xa
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov rcx, rax
call fcn.00486d86
mov rax, rbx
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x48d6fc
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x48d703
test al, 1
je 0x48d722
test al, 2
jne 0x48d737
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x004a9a28]
mov edx, 0x23
jmp 0x48d74a
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x004a9a68]
mov edx, 0x25
call fcn.00428f60
ud2