joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d630
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140016c60], rbx
je 0x14000d697
cmp rax, rbx
jne 0x14000d68a
mov ebx, 1
mov esi, ebx
jmp 0x14000d69c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d66f
mov ebx, 1
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d6b4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000d720
mov eax, dword [0x140016c68]
test eax, eax
jne 0x14000d715
mov dword [0x140016c68], ebx
lea r15, [0x140010ba8]
lea rdi, [0x140010b90]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000d707
test eax, eax
jne 0x14000d70b
cmp qword [rdi], r14
je 0x14000d6fc
mov rax, qword [rdi]
mov rcx, qword [0x140010b48]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000d6de
test eax, eax
je 0x14000d71b
mov eax, 0xff
jmp 0x14000d876
mov dword [0x1400163e4], ebx
mov edi, 0x1f
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d747
lea rdx, [0x140010b88]
lea rcx, [0x140010b50]
call sub.msvcrt.dll__initterm
mov dword [0x140016c68], 2
test esi, esi
jne 0x14000d755
mov rax, r14
xchg qword [0x140016c60], rax
cmp qword [0x140016c80], r14
je 0x14000d788
lea rcx, [0x140016c80]
call fcn.14000dce0
test eax, eax
je 0x14000d788
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140016c80]
mov r9, qword [0x140010b48]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000d7a1
mov eax, 0xff
jmp 0x14000d876
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000d827
test ax, ax
je 0x14000d7bc
test edx, edx
jne 0x14000d827
sub ax, bx
cmp ax, di
ja 0x14000d7d2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000d7bc
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001a68
mov dword [0x1400163e0], eax
cmp dword [0x140016400], r14d
jne 0x14000d810
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400163e4], r14d
jne 0x14000d825
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400163e0]
jmp 0x14000d876
cmp ax, 0x22
jne 0x14000d83b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000d7aa
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140194000
add rsp, 0x28
jmp 0x14000d630
Function at 0x259e515ac
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x259e515ea
movabs rax, 0x3ffffffffffffff
cmp rax, rcx
jae 0x259e515dd
movabs rax, 0x7ffffffffffffff
cmp rax, rcx
jae 0x259e515d8
call fcn.259f141d0
call fcn.259f14190
shl rcx, 5
add rsp, 0x28
jmp fcn.259f12380
xor eax, eax
add rsp, 0x28
ret
Function at 0x259e52220
Capabilities:
Capture screenshot

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
xor r8d, r8d
mov rbx, qword [rcx + 8]
mov rsi, qword [rcx]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa8], rbx
cmp rbx, 7
jbe 0x259e5229d
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xa8]
xor r8d, r8d
call fcn.259f026e0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x88]
xor eax, eax
cmp rbx, rax
je 0x259e522ba
movsx cx, byte [rsi + rax]
mov word [rdx + rax*2], cx
inc rax
jmp 0x259e522a7
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
call fcn.259f006d0
mov edx, 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov rcx, rax
test rax, rax
je 0x259e5244a
mov dword [rsp + 0xa8], 0x48
lea rdx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
test eax, eax
jne 0x259e52313
mov rcx, qword [0x259f4d0a0]
call sub.gdiplus.dll_GdiplusShutdown
jmp 0x259e5244a
mov r12d, dword [rsp + 0xb4]
mov r13d, dword [rsp + 0xb8]
xor ecx, ecx
sub r12d, dword [rsp + 0xac]
sub r13d, dword [rsp + 0xb0]
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
mov r8d, r13d
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r14, qword [sym.imp.GDI32.dll_SelectObject]
mov rdi, rax
mov rdx, rax
mov rcx, rsi
call r14
xor ecx, ecx
mov dword [rsp + 0x40], 0xcc0020
mov rbp, rax
mov r9d, r12d
mov dword [rsp + 0x38], ecx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], ecx
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.GDI32.dll_BitBlt]
xor eax, eax
xor edx, edx
lea r12, [rsp + 0x60]
mov rcx, rdi
mov qword [rsp + 0x78], rax
mov r8, r12
lea rax, fcn.259e77fa0
mov qword [rsp + 0x60], rdx
xor edx, edx
mov qword [rsp + 0x70], rax
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov r15, qword [rsp + 0x60]
mov rdx, r12
lea rcx, str.image_jpeg
mov dword [rsp + 0x80], eax
lea r13, [rsp + 0x70]
mov qword [rsp + 0x78], r15
call fcn.259e5217b
jmp 0x259e523fb
mov rdx, qword [rsp + 0x88]
xor r9d, r9d
mov r8, r12
mov rcx, r15
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x259e5241c
mov dword [rsp + 0x80], eax
mov rdx, rbp
mov rcx, rsi
call r14
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r13
call fcn.259e77fa0
mov rcx, qword [rsp + 0x58]
call fcn.259efff80
nop
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x259e5266e
Capabilities:
Get session user name

Disassembly:
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
lea rsi, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov dword [rsp + 0x2c], 0x100
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rdx, rsi
mov rcx, rbx
call fcn.259e516f2
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
ret
Function at 0x259e52cee
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
mov rcx, qword [0x259f4d0a0]
call sub.gdiplus.dll_GdiplusShutdown
lea rbx, [rsp + 0x88]
xor eax, eax
lea rbp, [rsp + 0x50]
mov ecx, 0x1a
mov rdi, rbx
lea rsi, [rsp + 0x68]
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, rbp
rep stosd dword [rdi], eax
mov rcx, rsi
call sym.blitznet.dll_get_exe_path_abi:cxx11___
xor edx, edx
xor eax, eax
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x28], edx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, rsi
call fcn.259efbe80
mov rcx, qword [rsp + 0x50]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x259e5363f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push r13
mov eax, 0x13d8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.259e60550
sub rsp, rax
lea rax, [rsp + 0x30]
mov rsi, rcx
mov ebp, edx
mov byte [rsp + 0x30], 0
lea rbx, [rsp + 0xa08]
mov qword [rsp + 0x20], rax
xor eax, eax
lea rdx, [0x259f1a111]
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.259e516f2
lea rdi, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.259eeb440
mov rcx, rbx
call fcn.259efbe80
mov rcx, rdi
call fcn.259eeb640
mov dword [rsp + 0xa08], eax
mov edx, 1
jmp 0x259e536c7
mov eax, dword [rbx + rdx*4 - 4]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
inc rdx
cmp rdx, 0x270
jne 0x259e536c7
mov qword [rsp + 0x13c8], 0x270
xor r12d, r12d
lea r13, [rsp + 0x20]
cmp r12d, ebp
jge 0x259e53742
mov rcx, rbx
call fcn.259ef7880
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
cmp edx, 0x19
ja 0x259e5372e
cmp eax, 0x15
ja 0x259e5372e
mov rcx, rbx
call fcn.259ef7880
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
jmp 0x259e53717
shr rdx, 0x20
mov rcx, r13
add edx, 0x61
call fcn.259efeb80
inc r12d
jmp 0x259e536fd
lea rbx, [rsp + 0x20]
lea rdx, str.____
mov rcx, rsi
mov r8, rbx
call fcn.259f100a0
mov rcx, rdi
call fcn.259eeb3c0
mov rcx, rbx
call fcn.259efbe80
mov rax, rsi
add rsp, 0x13d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x259e5f4f0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.259e6ac00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x259e5fef2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x259f4d168]
test eax, eax
je 0x259e5ff8a
lea rax, [0x259f4d140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x259f4d170]
mov qword [rbp - 8], rax
jmp 0x259e5ff6e
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 0x259e5ff62
cmp qword [rbp - 0x10], 0
je 0x259e5ff62
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 0x259e5ff28
lea rax, [0x259f4d140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x259e5ff8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x259e60090
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 0x259e600b8
mov eax, 0
jmp 0x259e60106
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 0x259e600e1
mov eax, 0
jmp 0x259e60106
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 0x259e60101
mov eax, 0
jmp 0x259e60106
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x259e6010c
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 0x259e6018a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x259e60181
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 0x259e60181
mov rax, qword [rbp - 8]
jmp 0x259e6019f
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 0x259e60154
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x259e6e169
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x259e6e2b4
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.259e6d78d
cmp eax, 1
jne 0x259e6e2a7
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x259e6e25d
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x259e6e273
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x259e6e259
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x259e6e292
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x259e6e2b5
nop
add rsp, 0x90
pop rbp
ret
Function at 0x259e6f4c7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x259e6f2ea]
mov rdx, rax
lea rax, [0x259f4dbe0]
mov rcx, rax
call fcn.259e6e8e2
mov eax, dword [0x259f161b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x259e6f51a
mov rax, qword [rbp - 0x10]
jmp 0x259e6f67a
call fcn.259e6e045
mov qword [rbp - 0x10], rax
mov rax, qword [0x259f51040]
test rax, rax
je 0x259e6f536
cmp qword [rbp - 0x10], 0
jne 0x259e6f540
mov eax, 0
jmp 0x259e6f67a
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.259e6e169
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x259e6f61b
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x259f161b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x259e6f676
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x259e6f777
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.259e6f4c7
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.259e6f318
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x259e6f7e4
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
call rax
mov eax, dword [0x259f161b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x259e6f928
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x259e6f881
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x259e6f83c
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.259e6df1e
mov qword [rbp - 0x10], 0
mov eax, dword [0x259f161b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x259e6f928
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x259e6f8bb
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x259e6f928
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.259e6df1e
mov qword [rbp - 0x10], 0
mov eax, dword [0x259f161b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call rax
nop
Function at 0x259e71a10
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
lea rax, [0x259f161d0]
mov rcx, rax
call fcn.259e6d79c
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax]
cmp eax, 0xbab1f0ed
jne 0x259e71a4c
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax + 4]
test eax, eax
jg 0x259e71a8c
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov dword [rsp + 0x20], 0x28
lea r9, str..._.._.._mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
lea rax, str.Assertion_failed:___s___file__s__line__d_n
mov rdx, rax
call fcn.259e6b220
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov edx, dword [rax + 4]
sub edx, 1
mov dword [rax + 4], edx
lea rax, [0x259f161d0]
mov rcx, rax
call fcn.259e6d81b
mov eax, dword [rbp + 0x18]
add rsp, 0x30
pop rbp
ret

Function at 0x259e773f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call rcx
nop
jmp 0x259f12eb0
Function at 0x259ed8b40
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x259ed8b88
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x259ed8b5a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x259eeb640
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x259eeb668
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
test eax, eax
jle 0x259eeb6b0
cdqe
add rsi, rax
sub rbx, rax
jne 0x259eeb680
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x259eeb6bc
call rbp
cmp dword [rax], 4
je 0x259eeb680
lea rcx, str.random_device_could_not_be_read
call fcn.259f14450
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x259f20030]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov eax, dword [rax - 8]
test eax, eax
mov rax, qword [rcx + 8]
jg 0x259eeb700
mov dword [rax - 8], 1
ret
lock add dword [rax - 8], 1
ret

Function at 0x259ef7880
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x9c0], 0x26f
mov r9, rcx
jbe 0x259ef7899
call fcn.259ef77b0
mov rax, qword [r9 + 0x9c0]
lea rdx, [rax + 1]
mov eax, dword [r9 + rax*4]
mov qword [r9 + 0x9c0], rdx
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x28
ret

Function at 0x259efe9a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
movabs rcx, 0x3fffffffffffffff
mov rax, qword [rdx]
cmp rcx, rax
jb 0x259efe9fb
lea r9, [rax + 1]
cmp r8, rax
jae 0x259efe9d9
add r8, r8
cmp rax, r8
jae 0x259efe9d9
cmp rcx, r8
jae 0x259efe9e8
movabs r9, 0x4000000000000000
mov qword [rdx], rcx
mov rcx, r9
add rsp, 0x28
jmp fcn.259f12380
lea r9, [r8 + 1]
mov qword [rdx], r8
mov rcx, r9
add rsp, 0x28
jmp fcn.259f12380
lea rcx, [0x259f1b8e0]
call fcn.259f14380
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov qword [rcx + 8], rdx
ret