joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015010
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140038400]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400383e0]
test rbx, rbx
je 0x140015064
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001505b
test rsi, rsi
je 0x14001505b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140015040
lea rcx, [0x140038400]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400152b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1400152c0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400152d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140015311
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x140015308
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140015313
add rax, 0x28
cmp rax, r9
jne 0x1400152f4
xor eax, eax
ret

Function at 0x1400153c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140030e20]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001542f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14001542f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001542d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140015424
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001542f
add rdx, 0x28
cmp rdx, r9
jne 0x140015410
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140015530
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x140030e20]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x14001559f
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14001559f
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x14001559d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140015594
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400155a4
add rax, 0x28
cmp rax, r9
jne 0x140015580
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400155c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140030e20]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140015633
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140015633
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140015633
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140015633
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x140015627
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140015640
add rdx, 0x28
cmp rdx, r10
jne 0x140015613
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x140015658
jmp 0x140015630
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140015666
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140015630
test r8d, r8d
jg 0x140015650
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400157a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400157d0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400157e8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140015b10
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140015b48
xor edx, edx
mov ecx, eax
mov dword [0x140038470], eax
call sym.__mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x14002c088], eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140015b2e

Function at 0x140015b50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x140030bd0]
mov r9d, dword [rax]
test r9d, r9d
je 0x140015b7b
mov r8d, dword [global_once.0]
test r8d, r8d
je 0x140015b90
mov eax, dword [0x14002c088]
test eax, eax
jns 0x140015b85
mov dword [0x14002c088], 0
add rsp, 0x28
pop rbx
pop rsi
ret
lock add dword [0x14002c084], 1
jne 0x140015bd8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140015c00
xor edx, edx
mov ecx, eax
mov dword [0x140038470], eax
call sym.__mingwthr_key_dtor
mov dword [global_once.0], 1
test eax, eax
sete al
movzx eax, al
mov dword [0x14002c088], eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, dword [global_once.0]
lea rbx, global_once.0
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
test ecx, ecx
jne 0x140015b71
xor ecx, ecx
call rsi
mov edx, dword [rbx]
test edx, edx
je 0x140015bf0
jmp 0x140015b71
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140015bb4

Function at 0x140015c10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov edx, dword [0x14002c088]
test edx, edx
js 0x140015c38
test edx, edx
mov rax, qword [0x140038478]
jne 0x140015c4e
add rsp, 0x38
pop rbx
pop rsi
ret
call dbg.fc_key_init_once
mov edx, dword [0x14002c088]
mov rax, qword [0x140038478]
test edx, edx
je 0x140015c2b
mov esi, dword [0x140038470]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x140015cf0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r13, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, 1
mov rbp, qword [rcx + 0x10]
mov r12, qword [rcx + 0x18]
mov rax, qword [rdx]
mov rsi, rcx
mov rbx, rdx
mov r14, r8
jmp 0x140015d3b
mov qword [0x140038478], r15
mov rax, qword [rbx]
add edi, 1
mov rax, qword [rax]
mov qword [rbx], rax
test rax, rax
mov r8, qword [rsi]
je 0x140015de0
mov r15, qword [rax + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], r12
mov edx, 0xa
mov qword [rsp + 0x20], rbx
mov ecx, 1
call rbp
test eax, eax
jne 0x140015dfd
test r15, r15
je 0x140015d97
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0xa
mov ecx, 1
call r15
cmp eax, 7
je 0x140015e1d
cmp eax, 8
jne 0x140015dfd
mov rax, qword [rbx]
mov r15, qword [rax]
mov eax, dword [0x14002c088]
test eax, eax
js 0x140015dd0
test eax, eax
je 0x140015d28
mov ecx, dword [0x140038470]
mov rdx, r15
call r13
test eax, eax
jne 0x140015d2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140015d2f
call dbg.fc_key_init_once
mov eax, dword [0x14002c088]
jmp 0x140015da7
mov qword [rsp + 0x28], r12
mov r9, rsi
mov edx, 0x1a
mov ecx, 1
mov qword [rsp + 0x20], rbx
call rbp
test eax, eax
je 0x140015e18
mov eax, 2
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 5
mov dword [r14], edi
jmp 0x140015e02

Function at 0x140015e30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x14002c088]
test eax, eax
mov rbx, rcx
js 0x140015eb0
test eax, eax
jne 0x140015e68
mov rax, qword [0x140038478]
mov qword [0x140038478], rbx
mov qword [rbx], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov esi, dword [0x140038470]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x140038470]
mov qword [rbx], rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140015e5a
mov rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
call dbg.fc_key_init_once
mov eax, dword [0x14002c088]
jmp 0x140015e45

Function at 0x140015ec0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x14002c088]
mov rbx, qword [rcx]
test eax, eax
js 0x140015f10
test eax, eax
jne 0x140015ee8
mov qword [0x140038478], rbx
add rsp, 0x20
pop rbx
ret
mov ecx, dword [0x140038470]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140015edd
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
call dbg.fc_key_init_once
mov eax, dword [0x14002c088]
jmp 0x140015ed2
Function at 0x140015fe0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [0x14002c088]
test eax, eax
mov rbx, rcx
js 0x140016060
test eax, eax
mov rsi, qword [0x140038478]
jne 0x140016076
test rsi, rsi
mov qword [rsp + 0x38], rsi
je 0x140016051
lea rdi, [rsp + 0x38]
mov rax, rsi
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001603f
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, qword [rbx]
mov edx, 1
mov ecx, 1
call rax
cmp eax, 6
je 0x1400160a0
cmp eax, 8
jne 0x1400160d8
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
test rax, rax
mov qword [rsp + 0x38], rax
jne 0x140016011
mov eax, 5
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call dbg.fc_key_init_once
mov eax, dword [0x14002c088]
mov rsi, qword [0x140038478]
test eax, eax
je 0x140015fff
mov esi, dword [0x140038470]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140015fff
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
mov rdx, rdi
mov rcx, rbx
mov qword [rbx + 0x10], 0
mov qword [rsp + 0x38], rsi
mov qword [rbx + 0x18], rax
call dbg._Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x140016056
mov rcx, rdi
call sym.uw_install_context.constprop.0
nop dword [rax + rax]
mov eax, 3
jmp 0x140016056

Function at 0x1400160f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov ecx, dword [0x14002c088]
mov rbp, rdx
mov qword [rsp + 0x70], r8
test ecx, ecx
js 0x140016150
test ecx, ecx
mov rsi, qword [0x140038478]
jne 0x140016166
movq xmm0, rbp
mov qword [rsp + 0x28], rsi
mov rcx, rbx
lea rsi, [rsp + 0x28]
movhps xmm0, qword [rsp + 0x70]
movaps xmmword [rbx + 0x10], xmm0
lea r8, [rsp + 0x24]
mov rdx, rsi
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x140016189
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call dbg.fc_key_init_once
mov ecx, dword [0x14002c088]
mov rsi, qword [0x140038478]
test ecx, ecx
je 0x140016118
mov esi, dword [0x140038470]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140016118
mov rcx, rsi
call sym.uw_install_context.constprop.0
nop
nop dword [rax]
nop word cs:[rax + rax]

Function at 0x1400161f0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
jne 0x140016206
add rsp, 0x40
pop rbx
jmp dbg._Unwind_SjLj_RaiseException
mov qword [rsp + 0x28], rcx
lea rbx, [rsp + 0x38]
call sym._Unwind_SjLj_GetContext
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x34]
mov rdx, rbx
mov qword [rsp + 0x38], rax
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x140016239
mov rcx, rbx
call sym.uw_install_context.constprop.0
call sym.abort
nop
nop
Function at 0x140016260
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [0x14002c088]
test eax, eax
mov rsi, rcx
mov rdi, rdx
js 0x1400162e0
test eax, eax
mov rbx, qword [0x140038478]
jne 0x1400162f6
lea rbp, [rsp + 0x28]
jmp 0x14001629e
call rsi
test eax, eax
jne 0x1400162c8
mov rax, qword [rsp + 0x28]
mov rbx, qword [rax]
test rbx, rbx
mov qword [rsp + 0x28], rbx
mov rdx, rdi
mov rcx, rbp
jne 0x140016290
call rsi
test eax, eax
jne 0x1400162c8
mov eax, 5
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call dbg.fc_key_init_once
mov eax, dword [0x14002c088]
mov rbx, qword [0x140038478]
test eax, eax
je 0x140016283
mov ebx, dword [0x140038470]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140016283

Function at 0x140016410
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x140038490], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140038498], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140016460
lea rdx, [dbg.emutls_destroy]
mov ecx, eax
mov dword [0x140038488], eax
call sym.__mingwthr_key_dtor
test eax, eax
jne 0x140016468
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140016457
call sym.abort
nop
nop
Function at 0x140016470
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140030bd0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x1400164a8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140016510
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140016520
mov esi, dword [0x140038488]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140016590
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x1400165d8
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140016497
mov rcx, rbx
call dbg.emutls_alloc
mov qword [rsi + r12*8 + 8], rax
jmp 0x140016497
call dbg.emutls_alloc
mov qword [rbx + 0x10], rax
jmp 0x140016497
mov r10d, dword [rsi]
test r10d, r10d
je 0x14001663a
mov r9d, dword [global_once]
test r9d, r9d
je 0x140016668
lock add dword [0x140038490], 1
jne 0x14001669c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140016647
mov eax, dword [rsi]
test eax, eax
je 0x1400164b1
lock sub dword [0x140038490], 1
js 0x1400164b1
mov rcx, qword [0x140038498]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x1400164b1
lea rcx, [r12 + 0x21]
mov edx, 8
call sym.calloc
lea rdi, [r12 + 0x20]
test rax, rax
mov rsi, rax
je 0x1400166c3
mov qword [rax], rdi
mov ecx, dword [0x140038488]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400164eb
call r13
jmp 0x1400164eb
lea rdi, [rbp + rbp]
mov rcx, rsi
lea rax, [r12 + 0x20]
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
test rax, rax
mov rsi, rax
je 0x1400166c3
mov qword [rax], rdi
lea rcx, [rax + rbp*8 + 8]
sub rdi, rbp
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x1400165b3
call dbg.emutls_init
mov dword [global_once], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14001653c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x1400164b1
mov rax, qword [0x140038480]
lea r12, [rax + 1]
mov qword [0x140038480], r12
mov qword [rbx + 0x10], r12
jmp 0x140016557
lock add dword [0x14002c094], 1
je 0x140016621
mov r8d, dword [global_once]
lea rdi, [0x14002c090]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x140016630
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140016690
jmp 0x140016630
mov rcx, qword [0x140038498]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001654a
lock sub dword [0x140038490], 1
jmp 0x14001654a
call sym.abort
nop
nop dword [rax]
Function at 0x14001b0d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.rand_s
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rbx
test rax, rax
je 0x14001b111
mov rcx, rsi
mov qword [sym.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, [0x140030b9e]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x140038e80], rax
lea rax, [sym.mingw_rand_s]
jmp 0x14001b0fe

Function at 0x14001bce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x60
mov r9d, 4
mov r8d, 0x1000
xor ecx, ecx
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x5e]
mov rcx, rbx
movzx r9d, word [rsp + 0x52]
lea rdx, str.__04d__02d__02d__02d:_02d:_02d._03d_
movzx r8d, word [rsp + 0x50]
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x5c]
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x5a]
mov dword [rsp + 0x30], eax
movzx eax, word [rsp + 0x58]
mov dword [rsp + 0x28], eax
movzx eax, word [rsp + 0x56]
mov dword [rsp + 0x20], eax
call sym.sprintf_char__char_const__::_
mov rax, rbx
add rsp, 0x60
pop rbx
ret
Function at 0x14001d070
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rax, [sym.__gxx_personality_sj0]
mov qword [rsp + 0x60], rax
lea rax, [0x1400353ac]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x30]
lea rax, [0x14001d247]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rsp
call dbg._Unwind_SjLj_Register
cmp byte [0x14002c200], 0
jne 0x14001d215
mov byte [0x14002c200], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001d1db
mov rdx, qword [rax + 8]
lea r9, [rsp + 0xac]
xor eax, eax
cmp byte [rdx], 0x2a
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0xac], 0xffffffff
sete al
xor r8d, r8d
add rdx, rax
mov rcx, rdx
mov qword [rsp + 0x98], rdx
xor edx, edx
call sym.__cxa_demangle
mov rdx, qword [sym.__acrt_iob_func]
mov ecx, 2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
call rdx
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0xac]
mov ecx, 2
test edx, edx
je 0x14001d1c5
mov rax, qword [rsp + 0x20]
mov dword [rsp + 0x38], 0xffffffff
call rax
mov rcx, qword [rsp + 0x98]
mov rdx, rax
call sym.fputs
mov ecx, 2
mov rax, qword [rsp + 0x20]
mov dword [rsp + 0x38], 0xffffffff
call rax
mov r8d, 2
mov edx, 1
lea rcx, [0x14002e201]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0xac]
test eax, eax
jne 0x14001d1b8
mov rcx, qword [rsp + 0x28]
call sym.free
mov dword [rsp + 0x38], 1
call sym.__cxa_rethrow
mov rdx, qword [rsp + 0x20]
call rdx
mov rcx, qword [rsp + 0x28]
mov rdx, rax
call sym.fputs
jmp 0x14001d175
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
mov dword [rsp + 0x38], 0xffffffff
call sym.abort
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x14001d2ee
sub rdx, 1
mov rcx, qword [rsp + 0x28]
jne 0x14001d30a
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
call rax
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov rax, qword [rsp + 0x20]
mov ecx, 2
call rax
mov rcx, qword [rsp + 0x28]
mov rdx, rax
call sym.fputs
mov rax, qword [rsp + 0x20]
mov ecx, 2
call rax
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001d208
sub eax, 1
jne 0x14001d321
call sym.__cxa_end_catch
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x38], 0xffffffff
call dbg._Unwind_SjLj_Resume
call sym.__cxa_begin_catch
mov dword [rsp + 0x38], 0xffffffff
call sym.__cxa_end_catch
jmp 0x14001d208
ud2
Function at 0x14001d247
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rax, [sym.__gxx_personality_sj0]
mov qword [rsp + 0x60], rax
lea rax, [0x1400353ac]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x30]
lea rax, [0x14001d247]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rsp
call dbg._Unwind_SjLj_Register
cmp byte [0x14002c200], 0
jne 0x14001d215
mov byte [0x14002c200], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001d1db
mov rdx, qword [rax + 8]
lea r9, [rsp + 0xac]
xor eax, eax
cmp byte [rdx], 0x2a
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0xac], 0xffffffff
sete al
xor r8d, r8d
add rdx, rax
mov rcx, rdx
mov qword [rsp + 0x98], rdx
xor edx, edx
call sym.__cxa_demangle
mov rdx, qword [sym.__acrt_iob_func]
mov ecx, 2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
call rdx
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0xac]
mov ecx, 2
test edx, edx
je 0x14001d1c5
mov rax, qword [rsp + 0x20]
mov dword [rsp + 0x38], 0xffffffff
call rax
mov rcx, qword [rsp + 0x98]
mov rdx, rax
call sym.fputs
mov ecx, 2
mov rax, qword [rsp + 0x20]
mov dword [rsp + 0x38], 0xffffffff
call rax
mov r8d, 2
mov edx, 1
lea rcx, [0x14002e201]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0xac]
test eax, eax
jne 0x14001d1b8
mov rcx, qword [rsp + 0x28]
call sym.free
mov dword [rsp + 0x38], 1
call sym.__cxa_rethrow
mov rdx, qword [rsp + 0x20]
call rdx
mov rcx, qword [rsp + 0x28]
mov rdx, rax
call sym.fputs
jmp 0x14001d175
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
mov dword [rsp + 0x38], 0xffffffff
call sym.abort
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x14001d2ee
sub rdx, 1
mov rcx, qword [rsp + 0x28]
jne 0x14001d30a
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
call rax
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov rax, qword [rsp + 0x20]
mov ecx, 2
call rax
mov rcx, qword [rsp + 0x28]
mov rdx, rax
call sym.fputs
mov rax, qword [rsp + 0x20]
mov ecx, 2
call rax
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001d208
sub eax, 1
jne 0x14001d321
call sym.__cxa_end_catch
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x38], 0xffffffff
call dbg._Unwind_SjLj_Resume
call sym.__cxa_begin_catch
mov dword [rsp + 0x38], 0xffffffff
call sym.__cxa_end_catch
jmp 0x14001d208
ud2