joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800b8740
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov rbx, rdx
mov r8, rdx
lea rdx, [rbp - 0x30]
call fcn.1800b8fd0
nop
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x50]
call fcn.1800038c0
nop
mov qword [rbp - 0x50], 0
mov word [rbp - 0x48], 0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.180094b50
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x40]
call fcn.1800038c0
nop
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rax
mov byte [rbp - 0x38], 0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x1800b87db
xor al, al
jmp 0x1800b87f7
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1800b87f1
xor al, al
jmp 0x1800b87f7
mov byte [rbp - 0x48], 1
mov al, 1
mov byte [rbp - 0x38], al
mov byte [rbp - 0x60], 0
lea r9, [rbp - 0x60]
mov r8, rdi
mov rdx, rbx
call fcn.1800b88b0
test al, al
jne 0x1800b8828
cmp byte [rbp - 0x60], al
je 0x1800b8828
mov rcx, rbx
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x1800b8849
cmp byte [rbp - 0x38], 0
je 0x1800b8849
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800b8845
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 8], 0
mov qword [rbp - 0x40], 0
lea rcx, [rbp - 0x40]
call fcn.180003800
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1800b8872
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x50], 0
mov word [rbp - 0x48], 0
lea rcx, [rbp - 0x50]
call fcn.180003800
nop
lea rcx, [rbp - 0x30]
call fcn.180003b80
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800d8050
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1800ba0a0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], 0x114
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, 0x110
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call fcn.1800f7810
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x1800ba120
cmp dword [rsp + 0x24], 6
jb 0x1800ba120
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x150
pop rbx
ret

Function at 0x1800ba140
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
lea rdx, str.wintrust.dll
lea rcx, [rax - 0x50]
call fcn.180003bb0
nop
call fcn.1800a6010
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800a60e0
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.180003b80
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.180003bb0
nop
call fcn.1800a6010
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.1800a60e0
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.180003b80
test rbx, rbx
je 0x1800ba296
test rdi, rdi
je 0x1800ba296
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800bc860
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rdx
mov rbx, rcx
mov rdx, qword [rcx]
test rdx, rdx
je 0x1800bc979
cmp byte [rdx + 0x78], 0
je 0x1800bc979
add rdx, 0x28
lea rcx, [r11 - 0x48]
call fcn.180022480
nop
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.180096370
nop
lea rcx, [rsp + 0x60]
call fcn.180006030
mov rdi, rax
lea rcx, [rsp + 0x60]
call fcn.18000a3b0
mov rsi, rax
mov rcx, qword [rbx]
call fcn.180003a80
mov rcx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800bc964
mov dword [rsp + 0x40], 0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x60]
call fcn.18000a4b0
nop
lea rcx, [rsp + 0x50]
call fcn.1800224f0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800d8050
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800ccd80
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 [0x180208090]
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 0x1800cceab
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800ccea2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800cce84
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800cce84
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800cce84
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800cce42
mov rcx, qword [0x18020d248]
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 0x1800ccea2
jmp 0x1800cce77
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800cce77
mov rcx, qword [0x18020d248]
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 0x1800ccea2
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 0x1800ccdf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800ccf03
cmp dword [rbx + 0xc], esi
jbe 0x1800ccf03
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800ccefc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800ccbd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800ccec0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800d8050
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 0x1800ccf30
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
cmp dword [rcx + 0xc], ebx
jbe 0x1800ccf88
mov qword [rsp + 0x30], rdi
nop dword [rax]
mov rax, qword [rsi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800ccf7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rsi + 0xc]
jb 0x1800ccf50
mov rdi, qword [rsp + 0x30]
mov r8, qword [rsi]
xor edx, edx
mov rcx, qword [0x18020d248]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]

Function at 0x1800ccfb0
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, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x18020ec80]
movzx r8d, byte [rbx + 0x20]
mov rdx, qword [rbx]
mov rdi, rdx
and r8b, 1
je 0x1800ccfe8
lea rdi, [rdx - 5]
movzx eax, r8b
lea rcx, [rdx - 5]
test r8b, r8b
lea r9, [rsp + 0x30]
mov r8d, 0x40
cmove rcx, rdx
lea rbp, [rax*2 + 5]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800cd021
mov eax, 0xa
jmp 0x1800cd0b0
test esi, esi
je 0x1800cd043
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 0x1800cd066
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800cd066
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800cd05f
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800cd066
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
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]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800cd0d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x18020ec8c]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x1800cd1e0
mov rcx, qword [0x18020ec80]
add rcx, 0x20
test byte [rcx], 2
jne 0x1800cd113
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x1800cd0f7
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800cd1e0
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, 0xffffffff
call fcn.1800ccd80
mov edx, dword [0x18020ec8c]
cmp ebx, edx
jae 0x1800cd16f
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18020ec80]
test byte [rcx + rax + 0x20], 2
je 0x1800cd169
xor edx, edx
mov ecx, ebx
call fcn.1800ccfb0
mov edi, eax
test eax, eax
jne 0x1800cd16f
mov edx, dword [0x18020ec8c]
inc ebx
cmp ebx, edx
jb 0x1800cd140
cmp qword [rsp + 0x20], 0
je 0x1800cd1e0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800cd1cc
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
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 0x1800cd1b8
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 0x1800cd190
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18020d248]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1800cd4e0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov r14d, r15d
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x18020d244], esi
je 0x1800cd531
cmp rbx, 0x20
jae 0x1800cd51a
xor ecx, ecx
jmp 0x1800cd51c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18020d244], esi
jne 0x1800cd510
cmp qword [0x18020d248], r14
mov qword [rsp + 0x58], r13
je 0x1800cd6d0
mov ecx, dword [0x18020ec8c]
mov ebx, r15d
test ecx, ecx
je 0x1800cd56f
mov rdx, qword [0x18020ec80]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x1800cd57a
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800cd560
mov r14d, 4
jmp 0x1800cd6d6
cmp ebx, 0xffffffff
je 0x1800cd56f
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800cd62b
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800ccd80
xor edx, edx
mov ecx, ebx
call fcn.1800ccfb0
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x1800cd61b
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x1800cd607
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, ecx
nop word [rax + rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800cd5f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x1800cd5d0
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18020d248]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x1800cd6d6
mov rdx, qword [0x18020ec80]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.1800ce0f0
mov eax, dword [0x18020ec8c]
lea ecx, [rax - 1]
cmp ebx, ecx
jae 0x1800cd681
mov eax, ecx
imul rcx, rax, 0x38
mov rax, qword [0x18020ec80]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov eax, dword [0x18020ec8c]
mov edx, dword [0x18020ec88]
lea ecx, [rax - 1]
mov eax, edx
mov dword [0x18020ec8c], ecx
shr eax, 1
cmp eax, 0x20
jb 0x1800cd6d6
cmp eax, ecx
jb 0x1800cd6d6
mov r8, qword [0x18020ec80]
mov eax, edx
mov rcx, qword [0x18020d248]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1800cd6d6
shr dword [0x18020ec88], 1
mov qword [0x18020ec80], rax
jmp 0x1800cd6d6
mov r14d, 2
xchg dword [0x18020d244], r15d
mov r13, qword [rsp + 0x58]
mov eax, r14d
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800cd8e0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov ebp, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x18020d244], edi
je 0x1800cd931
nop
cmp rbx, 0x20
jae 0x1800cd91a
xor ecx, ecx
jmp 0x1800cd91c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18020d244], edi
jne 0x1800cd910
cmp qword [0x18020d248], rbp
je 0x1800cda5d
mov r8d, dword [0x18020ec8c]
mov ebx, r15d
test r8d, r8d
je 0x1800cda62
mov rdx, qword [0x18020ec80]
add rdx, 0x20
nop dword [rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x1800cd97c
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x1800cd960
jmp 0x1800cda62
cmp ebx, 0xffffffff
je 0x1800cda62
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 2
call fcn.1800ccd80
mov edx, dword [0x18020ec8c]
cmp ebx, edx
jae 0x1800cd9f2
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18020ec80]
movzx r8d, byte [rcx + rax + 0x20]
movzx eax, r8b
shr al, 1
xor al, r8b
test al, 2
je 0x1800cd9ec
movzx edx, r8b
mov ecx, ebx
shr edx, 2
and edx, edi
call fcn.1800ccfb0
mov ebp, eax
test eax, eax
jne 0x1800cd9f2
mov edx, dword [0x18020ec8c]
inc ebx
cmp ebx, edx
jb 0x1800cd9b0
cmp qword [rsp + 0x20], r15
je 0x1800cda62
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800cda47
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rsi
mov esi, eax
nop dword [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 0x1800cda38
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 0x1800cda10
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18020d248]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800cda62
mov ebp, 2
xchg dword [0x18020d244], r15d
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800cde90
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
cmp rdi, 0x40000000
jbe 0x1800cdecb
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18020ec70]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x1800cdf0d
cmp rsi, r14
jb 0x1800cdf05
cmp rsi, r15
jae 0x1800cdf05
cmp qword [rsi + 8], 0
jne 0x1800ce0d5
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800cdef0
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800cdf99
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800cdf99
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800cdf99
cmp dword [rsp + 0x70], 0x10000
je 0x1800ce01b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800cdf99
sub rbx, rbp
cmp rbx, r14
jae 0x1800cdf60
test rsi, rsi
jne 0x1800ce080
cmp rdi, r15
ja 0x1800ce0bd
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800ce0bd
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ce0bd
cmp dword [rsp + 0x70], 0x10000
je 0x1800ce051
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800cdfd2
jmp 0x1800ce0bd
test rbx, rbx
je 0x1800cdf99
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800ce080
cmp rbx, r14
jae 0x1800cdf40
jmp 0x1800cdfa2
test rdi, rdi
je 0x1800ce0bd
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800ce080
cmp rdi, r15
jbe 0x1800cdfb0
jmp 0x1800ce0bd
xor eax, eax
lea rcx, [rsi + 0x40]
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add r12, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp r12, 0xfc0
jbe 0x1800ce090
mov rax, qword [0x18020ec70]
mov qword [rsi], rax
mov qword [0x18020ec70], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1800dabfc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1800dac0f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1800db21c
lea rdx, [0x180205390]
lea rcx, [rsp + 0x20]
call fcn.1800f72b8
int3

Function at 0x1800e697c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x18020c228]
xor edx, edx
jmp fcn.1800dabfc

Function at 0x1800e7314
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x18020c228]
jmp fcn.1800dabfc

Function at 0x1800f2f8c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800f3048]
mov r9, qword [r9 + 8]
jmp fcn.1800e2e50

Function at 0x1800f3020
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800f3058]
mov r9, qword [r9 + 8]
jmp fcn.1800e2e50
Function at 0x180114198
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180114038
call fcn.1800ff5e8
mov dword [rax], 0x16
call fcn.1800fa40c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180114020
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180114020
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18011406a
lock or dword [rax + 0x14], 0x10
jmp 0x180114020
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180114087
mov rcx, qword [rbp + 0x10]
call fcn.1801143fc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180110d50
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.180112814
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1801140de
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180114020
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18011414a
mov rcx, qword [rbp + 0x10]
call fcn.180110d50
cmp eax, 0xffffffff
je 0x180114131
mov rcx, qword [rbp + 0x10]
call fcn.180110d50
cmp eax, 0xfffffffe
je 0x180114131
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180110d50
movsxd rdi, eax
lea rsi, [0x18020c8d0]
mov rcx, rbx
sar rdi, 6
call fcn.180110d50
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180114138
lea rax, [0x180208550]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18011414a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180114180
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18011417c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18011417c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180114023
jmp 0x180113ff0