joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800360b0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180091040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800361db
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800361d2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800361b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800361b4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800361b4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180036172
mov rcx, qword [0x1800922e8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800361d2
jmp 0x1800361a7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800361a7
mov rcx, qword [0x1800922e8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800361d2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180036120
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180036233
cmp dword [rbx + 0xc], esi
jbe 0x180036233
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003622c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180035f00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800361f0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18003c190
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180036260
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180091040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180a1bc10]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800362d3
mov eax, 0xa
jmp 0x180036366
test esi, esi
je 0x1800362f5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180036318
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180036318
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180036311
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180036318
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18003c190
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180036390
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180a1bc1c]
mov ebx, edi
test ecx, ecx
je 0x1800364cb
mov rax, qword [0x180a1bc10]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800363e8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800363c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800364cb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800360b0
mov r8d, dword [0x180a1bc1c]
cmp ebx, r8d
jae 0x180036458
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180a1bc10]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180036451
mov edx, esi
mov ecx, ebx
call fcn.180036260
mov edi, eax
test eax, eax
jne 0x180036458
mov r8d, dword [0x180a1bc1c]
inc ebx
cmp ebx, r8d
jb 0x180036420
cmp qword [rsp + 0x20], 0
je 0x1800364cb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800364b7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800364a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180036480
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800922e8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180036840
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1800922dc], ebp
je 0x180036897
cmp rbx, 0x20
jae 0x180036880
xor ecx, ecx
jmp 0x180036882
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800922dc], ebp
jne 0x180036876
cmp qword [0x1800922e8], r15
je 0x180036991
test rdi, rdi
jne 0x1800368b7
mov ecx, esi
call fcn.180036390
mov ebp, eax
jmp 0x180036996
mov ecx, dword [0x180a1bc1c]
mov ebx, r15d
test ecx, ecx
je 0x1800368df
mov r8, qword [0x180a1bc10]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800368e9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800368d0
mov ebp, 4
jmp 0x180036996
cmp ebx, 0xffffffff
je 0x1800368df
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180036988
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800360b0
mov edx, esi
mov ecx, ebx
call fcn.180036260
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180036996
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180036972
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180036968
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180036940
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800922e8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180036996
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180036996
mov ebp, 2
xchg dword [0x1800922dc], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180037040
Capabilities:
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov rdx, rcx
jbe 0x180037056
mov rdx, qword [rcx]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x28], xmm0
mov r8, 0xffffffffffffffff
movdqu xmmword [rsp + 0x38], xmm1
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x180037070
lea rcx, [rsp + 0x28]
call fcn.18003a4f0
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1800370db
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800370d6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800370d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c6d4
cmp qword [rbx + 0x18], 0xf
jbe 0x1800370e5
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
add rsp, 0x50
pop rbx
ret
Function at 0x180039470
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
test edx, edx
je 0x180039567
cmp edx, 1
jne 0x180039591
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ebx, ebx
lea r8, [0x180039410]
mov qword [rsp + 0x28], rbx
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.citizen_resources_core.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1800394d1
lea rdx, str.Couldnt_get_base_address_of_citizen_resources_core
jmp 0x180039525
lea rcx, str.gta_net_five.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
test rax, rax
jne 0x1800394ef
lea rdx, str.Couldnt_get_base_address_of_gta_net_five
jmp 0x180039525
lea rax, [rdi + 0xae6c0]
mov qword [0x180092328], rax
test rax, rax
jne 0x18003950b
lea rdx, str.no_resource
jmp 0x180039525
lea rax, [rcx + 0x1f41d8]
mov qword [0x180092330], rax
test rax, rax
jne 0x180039555
lea rdx, str.no_net
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor r9d, r9d
lea rdx, str.executor_offsets_are_out_of_date
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp dword [0x1800924d8], 0
je 0x180039591
call fcn.1800369c0
mov rcx, qword [0x1800924d0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
mov qword [0x1800924d0], rbx
mov dword [0x1800924d8], ebx
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x2fc4db1b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dbbb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dbc4a
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dbc2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4dbc22
cmp qword [rbp - 0x10], 0
je 0x2fc4dbc22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4dbbe8
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dbc4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dbd50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dbd78
mov eax, 0
jmp 0x2fc4dbdc6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4dbda1
mov eax, 0
jmp 0x2fc4dbdc6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dbdc1
mov eax, 0
jmp 0x2fc4dbdc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbdcc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4dbe4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbe41
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4dbe41
mov rax, qword [rbp - 8]
jmp 0x2fc4dbe5f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4dbe14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4daf30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4db932
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4db9ca
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4db9ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4db9a2
cmp qword [rbp - 0x10], 0
je 0x2fc4db9a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4db968
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db9cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dbad0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dbaf8
mov eax, 0
jmp 0x2fc4dbb46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4dbb21
mov eax, 0
jmp 0x2fc4dbb46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dbb41
mov eax, 0
jmp 0x2fc4dbb46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbb4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4dbbca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbbc1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4dbbc1
mov rax, qword [rbp - 8]
jmp 0x2fc4dbbdf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4dbb94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000fcb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
push rdx
pop rax
nop
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000fd40
cmp r11, r10
ja 0x14000fdae
cmp r10, rdx
ja 0x14000fdc2
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000fd42
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000fd20
jmp 0x14000fd9c
ja 0x14000fd4a
mov r11, r10
cmp rax, r8
jne 0x14000fce4
add rsi, rdi
lea rdx, [rdi + 1]
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
movzx r8d, byte [rdi]
or r8b, r8b
jns 0x14000fd80
cmp rdx, rsi
je 0x14000fdd3
movzx r9d, byte [rdx]
inc rdx
and r8d, 0x7f
shl r8d, 8
or r8d, r9d
push rdx
nop
pop rdi
sub ecx, r8d
js 0x14000fd9e
xor al, 1
sub edx, edx
cmp rdi, rsi
setne dl
add rdx, rdi
cmp rdi, rsi
jne 0x14000fd60
jmp 0x14000fd9e
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14000e890
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14000e810
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14000dc00
ud2

Function at 0x140026536
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400a4018]
or ecx, ecx
je 0x14002654f
dec ecx
add rsp, 0x28
jmp fcn.1400a154c
lea rcx, section..data
call fcn.14005a4e0
mov ecx, eax
jmp 0x140026546
Function at 0x1400271ab
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
push rdx
pop rsi
nop
push rcx
pop rdi
nop
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.14002996f
test rax, rax
je 0x1400271e9
lea rdx, [0x1401072a8]
mov rcx, rax
call fcn.140026264
mov rax, qword [rdi + 0x30]
jmp 0x14002722e
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x60]
push rbx
pop rcx
nop
call fcn.1400264d8
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rdi + 0x28], rax
movups xmm0, xmmword [rbx + 0x18]
movups xmmword [rdi + 0x18], xmm0
movups xmm0, xmmword [rbx + 8]
movups xmmword [rdi + 8], xmm0
mov rax, qword [rdi + 0x30]
mov qword [rdi], rcx
and qword [rdi + 0x40], 0
add rax, 0xffffffffffffff00
mov qword [rdi + 0x38], rax
push rdi
pop rcx
nop
push rsi
nop
pop rdx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
jmp fcn.14002669e
Function at 0x14002729e
Capabilities:
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
push rcx
nop
pop rdi
call fcn.140026536
cmp rax, 2
jb 0x1400272cb
push rax
pop rsi
nop
cmp qword [rax + 8], 0
je 0x1400272cb
add rsi, 8
jmp 0x140027426
call fcn.140026536
cmp rax, 1
je 0x140027424
push rax
nop
pop rsi
test rax, rax
jne 0x14002731b
mov ecx, 0x10
mov edx, 8
call fcn.1400264a8
mov rsi, rax
lea rax, section..data
mov qword [rsi], rax
and qword [rsi + 8], 0
mov ecx, dword [0x1400a4018]
test ecx, ecx
je 0x140027436
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140027337
mov rbx, qword [rdi]
and qword [rdi], 0
or rbx, rbx
jne 0x140027413
sub ecx, ecx
call fcn.140026488
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
push rdi
pop rcx
nop
call fcn.14002996f
or rax, rax
jne 0x140027449
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdi, [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
lea rbx, [rsp + 0x70]
push rbx
pop rcx
nop
nop
push rdi
pop rdx
call fcn.1400264d8
mov r14, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rdi + 0x20], rax
movups xmm0, xmmword [rbx + 0x18]
movaps xmmword [rdi + 0x10], xmm0
movups xmm0, xmmword [rbx + 8]
movaps xmmword [rdi], xmm0
mov ecx, 0x170
mov edx, 0x10
call fcn.1400264a8
push rax
nop
pop rbx
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x10]
mov r8d, 0x100
sub edx, edx
call sub.msvcrt.dll_memset
mov qword [rbx + 0x110], 0x40
mov qword [rbx + 0x120], r14
movaps xmm0, xmmword [rdi]
movaps xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x128], xmm0
movups xmmword [rbx + 0x138], xmm1
mov rax, qword [rdi + 0x20]
mov qword [rbx + 0x148], rax
mov eax, 0x10000
mov qword [rbx + 0x150], rax
mov qword [rbx + 0x158], rax
and qword [rbx + 0x160], 0
add rsi, 8
mov rcx, qword [rsi]
mov qword [rsi], rbx
call fcn.140026488
jmp 0x140027426
sub esi, esi
push rsi
pop rax
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, section..data
call fcn.14005a4e0
mov ecx, eax
jmp 0x140027313
mov qword [rsp + 0x20], rax
lea rax, [0x1401072a8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rax], rdi
lea rdx, str.could_not_initialize_thread_rng:
lea rcx, [rsp + 0x70]
mov qword [rcx], rdx
mov edx, 1
mov qword [rcx + 8], rdx
and qword [rcx + 0x20], 0
lea r8, [0x14002990f]
mov qword [rax + 8], r8
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
lea rdx, str._redacted_
call fcn.14000db00
ud2