joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400450b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x13d0
call fcn.1401d8d30
sub rsp, rax
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov edi, edx
call fcn.14007e420
mov dword [rsp + 0x34], eax
mov r8d, 1
mov dword [rsp + 0x13b4], 0xffffffff
mov ebx, 0x270
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x34], eax
inc r8
cmp r8, rbx
jb 0x140045100
mov dword [rsp + 0x30], ebx
cmp edi, 5
jge 0x140045186
xor r9d, r9d
lea rax, [0x14022c658]
mov qword [rsp + 0x28], rax
lea rdx, [0x14022b650]
lea rax, [0x14022b1ec]
mov r8d, 0x765
mov qword [rsp + 0x20], rax
lea ecx, [r9 + 2]
call fcn.1401885f0
cmp eax, 1
jne 0x14004515d
int3
mov r9d, 0x765
mov qword [rsp + 0x20], 0
lea r8, [0x14022b6c0]
lea rdx, [0x14022b324]
lea rcx, [0x14022c690]
call fcn.140188f20
lea eax, [rdi - 5]
cmp eax, 0xffffffff
jne 0x140045213
lea r8, [rsp + 0x38]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x1400451a0
mov ebx, dword [rsp + 0x30]
mov ecx, dword [rsp + rbx*4 + 0x34]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13b4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov r8d, ecx
shr r8d, 0x12
xor r8d, ecx
jmp 0x14004525a
lea rcx, [rsp + 0x30]
lea ebx, [rax + 1]
call fcn.14006d7e0
mov r8d, eax
mov edi, ebx
imul r8, rdi
cmp r8d, ebx
jae 0x140045256
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp r8d, edx
jae 0x140045256
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.14006d7e0
mov r8d, eax
imul r8, rdi
cmp r8d, ebx
jb 0x140045240
shr r8, 0x20
lea edx, [r8 - 0x7ffffffb]
mov r8d, 0x80000000
cmp edx, r8d
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + r8]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.140075760
mov rbx, qword [rsp + 0x13e0]
add rsp, 0x13d0
pop rdi
ret
Function at 0x1400452a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1410
call fcn.1401d8d30
sub rsp, rax
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x1400], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
movups xmm0, xmmword [0x14022b878]
movups xmmword [rsp + 0x13c0], xmm0
movups xmm1, xmmword [0x14022b888]
movups xmmword [rsp + 0x13d0], xmm1
movups xmm0, xmmword [0x14022b898]
movups xmmword [rsp + 0x13e0], xmm0
movsd xmm0, qword [0x14022b8a8]
movsd qword [rsp + 0x13f0], xmm0
mov eax, dword [0x14022b8b0]
mov dword [rsp + 0x13f8], eax
movzx eax, word [0x14022b8b4]
mov word [rsp + 0x13fc], ax
movzx eax, byte [0x14022b8b6]
mov byte [rsp + 0x13fe], al
mov qword [rcx], rbp
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx + 0x18], rbp
mov qword [rcx + 0x20], rbp
lea ecx, [rbp + 0x10]
call fcn.1400760c0
mov qword [rax + 8], rbp
mov qword [rbx], rax
mov qword [rax], rbx
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], 0xf
mov byte [rbx + 8], bpl
mov dword [rsp + 0x20], 1
call fcn.14007e420
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
lea edx, [rbp + 1]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x1400453a0
mov dword [rsp + 0x30], 0x270
test edi, edi
jle 0x14004544d
nop
lea rcx, [rsp + 0x30]
call fcn.14006d7e0
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 3
ja 0x1400453fa
lea rcx, [rsp + 0x30]
call fcn.14006d7e0
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 4
jb 0x1400453e5
shr rax, 0x20
movsxd rcx, eax
movzx r9d, byte [rsp + rcx + 0x13c0]
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x20]
cmp rcx, rdx
jae 0x140045438
lea rax, [rcx + 1]
mov qword [rbx + 0x18], rax
lea rax, [rbx + 8]
cmp rdx, 0x10
jb 0x14004542d
mov rax, qword [rbx + 8]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140045447
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14005fba0
sub rdi, 1
jne 0x1400453d0
mov rax, rbx
mov rcx, qword [rsp + 0x1400]
xor rcx, rsp
call fcn.140075760
lea r11, [rsp + 0x1410]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14006d7e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14006d841
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14006d800
mov ecx, dword [r9]
jmp 0x14006d928
cmp ecx, 0x4e0
jb 0x14006d928
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14006d860
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14006d8b0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400c3db0
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jae 0x1400c3e3b
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movzx ecx, byte [rsp + 0x30]
call fcn.1400e33c0
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1400c3ddd
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400ee670
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x60]
mov dword [rax + 0x1350], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1358], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1161]
test eax, eax
je 0x1400ee6e5
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1161]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x70f]
cmp eax, ecx
jle 0x1400ee6fc
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x70f]
mov byte [rax + 0x1161], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1170], 0
je 0x1400ee735
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x11e8]
test eax, eax
jne 0x1400ee735
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x1a0
jne 0x1400ee735
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdd], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
cmp eax, 0xa
jne 0x1400ee768
lea rdx, [0x14024e648]
mov rcx, qword [rsp + 0x50]
call fcn.1400dbba0
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.1400dcfb0
jmp 0x1400ee7d0
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
cmp eax, 0x14
je 0x1400ee78f
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x7c], 2
jne 0x1400ee7a9
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x65
jne 0x1400ee7a9
xor eax, eax
test eax, eax
jne 0x1400ee78f
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d0]
mov dword [rax], 2
jmp 0x1400ee7d0
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
cmp eax, 0xb
jl 0x1400ee7d0
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x2ce]
test eax, eax
jne 0x1400ee7d0
xor eax, eax
test eax, eax
jne 0x1400ee7ca
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x64
jl 0x1400ee7f3
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0xc8
jge 0x1400ee7f3
mov dword [rsp + 0x28], 1
jmp 0x1400ee7fb
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x1400ee80c
mov dword [rsp + 0x2c], 0
jmp 0x1400ee814
mov dword [rsp + 0x2c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0xde], cl
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xcc
je 0x1400ee862
cmp dword [rsp + 0x30], 0x130
je 0x1400ee846
jmp 0x1400ee887
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x528]
test eax, eax
je 0x1400ee862
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1434], 1
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xde], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140102330
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call fcn.14018a650
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14010238b
mov ecx, 0xffffffff
call fcn.140102440
cmp qword [rsp + 0x30], rax
jne 0x14010238f
xor eax, eax
jmp 0x140102394
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x1401902a0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
call fcn.140189f60
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x48]
call fcn.140189e80
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
call fcn.140189e30
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14019030c
call fcn.140190560
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x2c], 0xffffffff
lea rcx, [rsp + 0x48]
call fcn.140189ee0
mov eax, dword [rsp + 0x2c]
jmp 0x1401903ae
lea rcx, [rsp + 0x78]
call fcn.140189e80
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc8]
call fcn.140189e30
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140190365
call fcn.140190560
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov dword [rsp + 0x30], 0xffffffff
lea rcx, [rsp + 0x78]
call fcn.140189ee0
lea rcx, [rsp + 0x48]
call fcn.140189ee0
mov eax, dword [rsp + 0x30]
jmp 0x1401903ae
lea rcx, [rsp + 0x78]
call fcn.140183f50
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
call fcn.140183f50
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.1401bf370
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x78]
call fcn.140189ee0
lea rcx, [rsp + 0x48]
call fcn.140189ee0
mov eax, dword [rsp + 0x34]
add rsp, 0xb8
ret
Function at 0x140001fb4
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400142f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140014300]
mov dword [rax], 1
mov rax, qword [0x140014310]
mov dword [rax], 1
mov rax, qword [0x140014290]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400142e0]
mov dword [0x14001a00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400143c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400143a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140014230]
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 [sym._matherr]
call sym.__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 0x140002082
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 0x1400020a1
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 0x140005d70
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140005de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001a1f4]
mov rbx, rcx
test esi, esi
jle 0x140005f10
mov rax, qword [0x14001a1f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140005e2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140005eb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140005e10
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140005f32
mov rax, qword [0x14001a1f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001a1f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140005f17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140005eae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005ec0
add dword [0x14001a1f4], 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 [0x14001a1f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140005eae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140005e38
mov rax, qword [0x14001a1f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400064a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001a260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001a240]
test rbx, rbx
je 0x1400064fc
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 0x1400064f3
test rsi, rsi
je 0x1400064f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400064d8
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 0x140006710
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006728
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140006730
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140006740
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 0x14000678d
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 0x140006784
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000678f
add rax, 0x28
cmp rax, r9
jne 0x140006770
xor eax, eax
ret

Function at 0x140006790
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140006820
mov rdx, qword [0x140014290]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000680e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000680e
cmp word [rax + 0x18], 0x20b
jne 0x14000680e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140006820
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400067f9
add rbx, 0x28
cmp rbx, rdi
je 0x140006820
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400067f0
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 0x140006830
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140014290]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140006850
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140006858
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006850
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400068ad
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 0x1400068a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140006850
add rax, 0x28
cmp rax, r9
jne 0x140006890
xor eax, eax
ret

Function at 0x1400068b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140014290]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400068cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400068d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400068cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400068f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140014290]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140006910
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140006918
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140006910
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140006960
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140006957
test rcx, rcx
je 0x140006910
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140006948
xor eax, eax
ret
Function at 0x140006970
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140014290]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400069d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400069d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400069d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400069d0
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 0x140006a24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140006a30
add rdx, 0x28
cmp r9, rdx
jne 0x140006a10
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140014290]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140006a62
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140006a70
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006a62
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140006a62
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140006a62
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 0x140006ac5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140006ad8
add rdx, 0x28
cmp rdx, r10
jne 0x140006ab0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140006ae7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140006af7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140006ace
test ecx, ecx
jg 0x140006ae0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x14000ce10
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140012438], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret