joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002e990]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14002e9a0]
mov dword [rax], 1
mov rax, qword [0x14002e9b0]
mov dword [rax], 1
mov rax, qword [0x14002e940]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14002e980]
mov dword [0x14003400c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14002ea60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14002ea40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14002e8e0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400055a0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov edx, 1
mov rsi, r8
mov r9, rdi
call sym.fread
mov rbx, rax
cmp rsi, rax
je 0x1400055d1
mov rcx, rdi
call sym.ferror
test eax, eax
jne 0x1400055e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rdi
call sym.checkErr__stdZsyncio_u165.part.0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140005fd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov edx, 1
mov r9, rbx
call sym.fwrite
mov rcx, rbx
mov rsi, rax
call sym.ferror
test eax, eax
je 0x140006000
mov rcx, rbx
call sym.checkErr__stdZsyncio_u165.part.0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140006280
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x14000629f
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sym.fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.fflush

Function at 0x14000d050
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, rsi
mov r8, rdi
mov edx, 1
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.fflush
Function at 0x14000d090
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
cmp qword [0x140034110], 0
mov rbx, rcx
mov rdi, rdx
je 0x14000d110
lea rsi, [rsp + 0x30]
mov rdx, rcx
mov rcx, rsi
call sym.cstrToNimstr
mov rbx, qword [rsp + 0x38]
mov rcx, rsi
call qword [0x140034110]
test rbx, rbx
je 0x14000d0d0
test byte [rbx + 7], 0x40
je 0x14000d0f0
lea rcx, [0x14002b3e0]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000d140
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x14002b400]
call sym.__emutls_get_address
mov rdx, rbx
mov rcx, rax
call sym.rawDealloc__system_u6968
jmp 0x14000d0d0
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, rbx
mov r8, rdi
mov edx, 1
mov rsi, rax
mov r9, rax
call sym.fwrite
mov rcx, rsi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.fflush
mov byte [rax], 0
lea rcx, [0x14002b2e0]
call sym.__emutls_get_address
mov rbx, qword [rax]
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000d169
mov rdx, qword [rsi - 0x10]
add rdx, 0x10
jo 0x14000d1b4
mov qword [rsi - 0x10], rdx
mov qword [rax], rsi
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x14000d198
sub rax, 0x10
jo 0x14000d1c5
mov r8, qword [rbx]
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.rememberCycle__system_u3375
mov r8, qword [rbx]
mov ecx, 1
call sym.rememberCycle__system_u3375
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.nimDestroyAndDispose
mov qword [rsp + 0x28], rax
call sym.raiseOverflow
mov rax, qword [rsp + 0x28]
jmp 0x14000d169
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.raiseOverflow
Function at 0x140012a90
Capabilities:
Hash data using murmur3

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
sar rdx, 0x3f
mov r12, rcx
shr rdx, 0x3e
mov r13, rdi
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
sub r13, rax
cmp rdi, 3
jle 0x140012c48
mov rsi, qword [0x14002e930]
mov ebx, dword [rcx]
mov rcx, rsi
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140012c21
xor ebp, ebp
mov ecx, 4
jmp 0x140012b01
cmp rdi, rcx
jle 0x140012c18
mov ebx, dword [r12 + rcx]
add rcx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ebp
rol eax, 0xd
lea ebp, [rax + rax*4 - 0x19ab949c]
cmp r13, rcx
jg 0x140012af0
mov rax, rdi
and eax, 3
je 0x140012c5d
lea r9, [rax - 1]
xor edx, edx
mov r8, r9
add r8, rcx
js 0x140012c74
cmp r8, rcx
jb 0x140012c74
test rdx, rdx
jne 0x140012c41
cmp rdi, r8
jle 0x140012c33
test r8, r8
js 0x140012c33
movzx edx, byte [r12 + r8]
test r9, r9
je 0x140012bcb
sub rax, 2
xor r10d, r10d
mov r9, rax
add r9, rcx
js 0x140012c7e
cmp r9, rcx
jb 0x140012c7e
mov r8, r9
test r10, r10
jne 0x140012c41
cmp rdi, r9
jle 0x140012c33
test r9, r9
js 0x140012c33
movzx r8d, byte [r12 + r9]
shl edx, 8
or edx, r8d
test rax, rax
je 0x140012bcb
test rcx, rcx
js 0x140012c30
cmp rdi, rcx
jle 0x140012c30
movzx eax, byte [r12 + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
mov rsi, qword [0x14002e930]
rol ebx, 0xf
mov rcx, rsi
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140012c21
imul ebx, ebx, 0x1b873593
xor ebp, edi
xor ebp, ebx
mov eax, ebp
shr eax, 0x10
xor eax, ebp
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x140012c23
lea rdx, [rdi - 1]
call sym.raiseIndexError2
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rcx
lea rdx, [rdi - 1]
mov rcx, r8
call sym.raiseIndexError2
jmp 0x140012c21
call sym.raiseOverflow
jmp 0x140012c21
test rax, rax
jle 0x140012c64
lea r9, [rax - 1]
xor ecx, ecx
xor ebp, ebp
mov r8, r9
jmp 0x140012b51
xor ebx, ebx
jmp 0x140012bdb
mov rsi, qword [0x14002e930]
xor ebp, ebp
xor ebx, ebx
jmp 0x140012bdb
mov edx, 1
jmp 0x140012b48
mov r10d, 1
jmp 0x140012b89

Function at 0x140012c90
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x140012cb8
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp sym.murmurHash__pureZhashes_u194
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call sym.raiseIndexError4
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001a150
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9, qword [r8]
mov rax, rcx
mov rcx, qword [r8 + 8]
test rax, rax
je 0x14001a17c
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x14001a1d0
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x8e771600
jne 0x14001a1d0
mov r8, qword [rdx]
test r9, r9
js 0x14001a1b8
cmp r9, r8
jge 0x14001a1b8
add rcx, 1
jo 0x14001a1dc
sub rcx, r9
jo 0x14001a1dc
test rcx, rcx
js 0x14001a1f0
mov rdx, qword [rdx + 8]
mov rax, qword [rax + 0x58]
mov r8, rcx
lea rdx, [rdx + r9 + 8]
mov rcx, rax
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u168
lea rdx, [r8 - 1]
mov rcx, r9
call sym.raiseIndexError2
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret
call sym.raiseOverflow
xor eax, eax
add rsp, 0x28
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x14001a1c4

Function at 0x14001a280
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov rcx, r8
test rax, rax
je 0x14001a2a8
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x14001a2e0
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x8e771600
jne 0x14001a2e0
test rcx, rcx
js 0x14001a2c0
mov rax, qword [rax + 0x58]
mov r8, rcx
mov rcx, rax
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u168
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret
Function at 0x140023fc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140024030
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400344f4]
mov rbx, rcx
test esi, esi
jle 0x140024160
mov rax, qword [0x1400344f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14002407b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140024105
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140024060
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140024182
mov rax, qword [0x1400344f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400344f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140024167
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400240fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140024110
add dword [0x1400344f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400344f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400240fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140024088
mov rax, qword [0x1400344f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400246f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140034560]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140034540]
test rbx, rbx
je 0x14002474c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140024743
test rsi, rsi
je 0x140024743
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140024728
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140024960
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140024978
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140024980
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140024990
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400249dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400249d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400249df
add rax, 0x28
cmp rax, r9
jne 0x1400249c0
xor eax, eax
ret

Function at 0x1400249e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140024a70
mov rdx, qword [0x14002e940]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140024a5e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140024a5e
cmp word [rax + 0x18], 0x20b
jne 0x140024a5e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140024a70
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140024a49
add rbx, 0x28
cmp rbx, rdi
je 0x140024a70
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140024a40
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140024a80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002e940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140024aa0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140024aa8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140024aa0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140024afd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140024af4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140024aa0
add rax, 0x28
cmp rax, r9
jne 0x140024ae0
xor eax, eax
ret

Function at 0x140024b00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002e940]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140024b1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140024b28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140024b1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140024b40
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14002e940]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140024b60
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140024b68
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140024b60
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140024bb0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140024ba7
test rcx, rcx
je 0x140024b60
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140024b98
xor eax, eax
ret

Function at 0x140024bc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002e940]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140024bdf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140024be8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140024c00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002e940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140024c20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140024c28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140024c20
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140024c20
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140024c74
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140024c80
add rdx, 0x28
cmp r9, rdx
jne 0x140024c60
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140024c90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14002e940]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140024cb2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140024cc0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140024cb2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140024cb2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140024cb2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140024d15
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140024d28
add rdx, 0x28
cmp rdx, r10
jne 0x140024d00
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140024d37
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140024d47
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140024d1e
test ecx, ecx
jg 0x140024d30
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140024e90
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400345e0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400345e8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140024ee0
lea rdx, [0x140024da0]
mov ecx, eax
mov dword [0x1400345d8], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x140024ee8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140024ed7
call sym.abort
nop
nop
Function at 0x140024ef0
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 [0x14002e8d0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140024f28
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140024f90
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 0x140024fa0
mov esi, dword [0x1400345d8]
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 0x140025010
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140025058
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140024f17
mov rcx, rbx
call fcn.140024df0
mov qword [rsi + r12*8 + 8], rax
jmp 0x140024f17
call fcn.140024df0
mov qword [rbx + 0x10], rax
jmp 0x140024f17
mov r10d, dword [rsi]
test r10d, r10d
je 0x1400250ba
mov r9d, dword [0x14002b790]
test r9d, r9d
je 0x1400250e8
lock add dword [0x1400345e0], 1
jne 0x14002511c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x1400250c7
mov eax, dword [rsi]
test eax, eax
je 0x140024f31
lock sub dword [0x1400345e0], 1
js 0x140024f31
mov rcx, qword [0x1400345e8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140024f31
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x140025143
mov qword [rax], rdi
mov ecx, dword [0x1400345d8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140024f6b
call r13
jmp 0x140024f6b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x140025143
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x140025033
call fcn.140024e90
mov dword [0x14002b790], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140024fbc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140024f31
mov rax, qword [0x1400345d0]
lea r12, [rax + 1]
mov qword [0x1400345d0], r12
mov qword [rbx + 0x10], r12
jmp 0x140024fd7
lock add dword [0x14002b794], 1
je 0x1400250a1
mov r8d, dword [0x14002b790]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x14002b790]
test r8d, r8d
jne 0x1400250b0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140025110
jmp 0x1400250b0
mov rcx, qword [0x1400345e8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140024fca
lock sub dword [0x1400345e0], 1
jmp 0x140024fca
call sym.abort
nop
nop dword [rax]
Function at 0x710010dd
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
xor rcx, rcx
mov rax, qword gs:[rcx + 0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x20]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x50]
push 2
push qword [rbp + 0x10]
push rax
call fcn.710010a4
test eax, eax
je 0x7100110e
mov rcx, rdx
jmp 0x710010f3
mov rdi, qword [rcx + 0x20]
mov ebx, dword [rdi + 0x3c]
mov ebx, dword [rbx + rdi + 0x88]
add rbx, rdi
mov ecx, dword [rbx + 0x1c]
mov edx, dword [rbx + 0x20]
mov ebx, dword [rbx + 0x24]
add rcx, rdi
add rdx, rdi
add rbx, rdi
mov esi, dword [rdx]
add rsi, rdi
push 1
push qword [rbp + 0x18]
push rsi
call fcn.710010a4
test eax, eax
je 0x71001151
add rdx, 4
inc rbx
inc rbx
jmp 0x71001131
xor rdx, rdx
mov dx, word [rbx]
mov eax, dword [rcx + rdx*4]
add rax, rdi
pop rdi
pop rsi
mov rsp, rbp
pop rbp
ret 0x10
Function at 0x1400292ec
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c9b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c9b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002943c
cmp rax, 0xffffffffffffffff
je 0x14002943c
xor edi, edi
test rbp, rbp
jle 0x1400293e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f2e0
mov rbx, rax
test rax, rax
jne 0x140029374
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400293dd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a2e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d690
cmp eax, 0xffffffff
je 0x1400293bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029384
mov edx, r15d
mov ecx, r14d
call fcn.14001a2e8
jmp 0x1400293dd
cmp byte [rsi + 0x38], dil
je 0x1400293d4
cmp dword [rsi + 0x34], 5
jne 0x1400293d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400293dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b07c
jmp 0x140029450
jns 0x140029450
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c9b4
cmp rax, 0xffffffffffffffff
jne 0x140029408
cmp byte [rsi + 0x30], dil
je 0x140029450
mov edi, dword [rsi + 0x2c]
jmp 0x140029450
mov ecx, r14d
call fcn.1400187a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029450
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029449
mov eax, dword [rsi + 0x2c]
jmp 0x14002944e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c9b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140001c10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c5c
xor al, al
add rsp, 0x28
ret