joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058880
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
cmp dword [rcx], 2
jne 0x14005893d
mov rax, qword [rcx + 8]
mov rcx, qword [rcx + 0x10]
movabs r8, 0x736f6d6570736575
xor r8, rax
movabs r9, 0x646f72616e646f6d
xor r9, rcx
movabs r10, 0x6c7967656e657261
xor r10, rax
movabs r11, 0x7465646279746573
xor r11, rcx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rsi, qword [rdx]
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14001a5c0
test rdi, rdi
je 0x1400589ea
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x140058a03
movabs rcx, 0x100000001b3
mov rdx, qword [rdx]
mov r8, qword [rdx]
xor eax, eax
test r8, r8
setne al
mov qword [rsp + 0x30], rax
movabs rax, 0xcbf29ce484222325
mov r10b, 1
xor r9d, r9d
nop word [rax + rax]
movzx r10d, r10b
and r10d, 1
add r10, r9
movzx r9d, byte [rsp + r9 + 0x30]
xor rax, r9
imul rax, rcx
mov r9, r10
cmp r10, 8
setne r10b
jne 0x140058970
test r8, r8
je 0x140058af8
mov r8, qword [rdx + 0x10]
test r8, r8
setne r10b
je 0x140058b34
mov r9, qword [rdx + 8]
add r8, r9
mov rdx, rax
nop dword [rax]
movzx r10d, r10b
and r10d, 1
add r10, r9
movzx eax, byte [r9]
xor rax, rdx
imul rax, rcx
mov rdx, rax
mov r9, r10
cmp r10, r8
setne r10b
jne 0x1400589c0
jmp 0x140058b34
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14001a5c0
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x140058b34
movzx edx, byte [rdx + 8]
mov qword [rsp + 0x30], rdx
mov r8b, 1
xor edx, edx
nop word cs:[rax + rax]
movzx r8d, r8b
and r8d, 1
add r8, rdx
movzx edx, byte [rsp + rdx + 0x30]
xor rax, rdx
imul rax, rcx
mov rdx, r8
cmp r8, 8
setne r8b
jne 0x140058b10
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400630a0
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1c58
call fcn.140155ad0
sub rsp, rax
movaps xmmword [rsp + 0x1c40], xmm6
mov r12, rdx
mov qword [rsp + 0xb8], rcx
lea rax, [r8 + 0x10]
mov qword [rsp + 0x2b0], rax
movzx eax, byte [r8 + 0x16]
mov byte [rsp + 0x45], al
movzx eax, byte [r8 + 0x11]
mov byte [rsp + 0x47], al
mov rax, qword [r8]
mov rcx, qword [r8 + 8]
mov qword [rsp + 0x290], rcx
mov qword [rsp + 0x2a8], rax
lea rax, [rax + 8]
mov qword [rsp + 0x298], rax
movzx eax, byte [r8 + 0x15]
mov byte [rsp + 0x46], al
xorps xmm6, xmm6
lea rdi, [0x140195cf8]
lea rbx, [rsp + 0x340]
mov qword [rsp + 0x118], rdx

Function at 0x140076230
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1400790b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x30], rax
movzx eax, byte [rdx + 0x30]
mov byte [rsp + 0x27], al
movzx eax, byte [0x14020a068]
mov ecx, 0x5f0
mov edx, 8
call fcn.14007eaa0
test rax, rax
je 0x140079313
mov rbx, rax
lea r15, [rdi + 0x38]
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call fcn.14015a930
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x28], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
nop word cs:[rax + rax]
mov ecx, 8
mov edx, 0x5f0
call fcn.14015acd0
int3
Function at 0x1400c4720
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov eax, dword [r9 + 8]
cmp rax, r8
jb 0x1400c48cd
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov r15d, dword [r9]
mov edx, dword [r9 + 4]
lea rbx, [r15 + r8]
add rdx, rbx
lea rdi, [rcx + 0x180]
mov ecx, 0x180
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, [0x1401bf3e8]
mov edx, 0x3e
add byte ds:[rax], al
add al, ch
or ebp, dword [rcx + 9]
invalid

Function at 0x1400c4ee0
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov eax, dword [r9 + 8]
cmp rax, r8
jb 0x1400c508d
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov r15d, dword [r9]
mov edx, dword [r9 + 4]
lea rbx, [r15 + r8]
add rdx, rbx
lea rdi, [rcx + 0x80]
cmp qword [rcx + 0x90], rdx
jae 0x1400c4f2f
mov rcx, rdi
xor r8d, r8d
call fcn.1400089c0
mov rdx, qword [rsi + 0x90]
cmp rdx, rbx
jb 0x1400c50a5
mov rcx, qword [rsi + 0x88]
add rcx, r15
lea rax, [0x1401bf418]
mov qword [rsp + 0x20], rax
mov rdx, r14
mov r8, r12
mov r9, r14
call fcn.140018750
mov rdx, qword [rsi + 0x90]
cmp rdx, r15
jb 0x1400c50b4
mov r8, qword [rsi + 0x88]
lea rcx, [rsp + 0x78]
mov edx, 7
mov r9, r15
call case.0x1400028be.5462
mov rdx, qword [rsi + 0x90]
cmp rdx, rbx
jb 0x1400c50c3
add r15, qword [rsi + 0x88]
lea rcx, [rsp + 0x88]
mov edx, 1
mov r8, r15
mov r9, r14
call case.0x1400028be.5462
mov rdx, qword [rsi + 0x90]
mov r9, rdx
sub r9, rbx
jb 0x1400c50d2
add rbx, qword [rsi + 0x88]
lea rcx, [rsp + 0x98]
mov edx, 6
mov r8, rbx
call case.0x1400028be.5462
lea rcx, [rsp + 0x60]
xor edx, edx
xor r8d, r8d
call case.0x1400028be.5462
movups xmm0, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x50], xmm0
lea rbx, [rsp + 0xa8]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov rcx, rbx
call fcn.1400f9080
lea rcx, [rsi + 0xf0]
xor edx, edx
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x1400c505b
shl rax, 0x20
or rax, 2
jmp 0x1400c507c
mov edx, dword [rsp + 0x40]
add edx, dword [rsp + 0x30]
add edx, dword [rsp + 0x50]
mov rcx, rdi
call fcn.14006c9d0
mov qword [rsi + 0x98], 0
xor eax, eax
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, [0x1401bf3e8]
mov edx, 0x3e
call fcn.14015b1f0
lea r8, [0x1401bf400]
mov rcx, rbx
call fcn.14015b170
lea r8, [0x1401bf430]
mov rcx, r15
call fcn.14015b170
lea r8, [0x1401bf448]
mov rcx, rbx
call fcn.14015b170
lea r8, [0x1401bf460]
mov rcx, rbx
call fcn.14015b070
int3
Function at 0x1400c60c0
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
add byte [rax], al
mov rsi, rcx
lea r15, [rdi + 0x60]
mov r8, qword [rdi + 0x68]
lea rcx, [rsp + 0xa8]
mov edx, 1
call case.0x1400028be.5462
lea rcx, [rsp + 0x98]
xor edx, edx
xor r8d, r8d
call case.0x1400028be.5462
lea rcx, [rsp + 0x28]
xor edx, edx
xor r8d, r8d
call case.0x1400028be.5462
lea rcx, [rsp + 0x80]
xor edx, edx
xor r8d, r8d
call case.0x1400028be.5462
movups xmm0, xmmword [rsp + 0xa8]
movaps xmmword [rsp + 0x50], xmm0
and al, 0x50
lea r8, [0x1401bf378]
mov rcx, r9
call fcn.14015b170

Function at 0x1400c8650
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x28], rcx
test rdx, rdx
je 0x1400c868a
mov r8, qword [rdx + 8]
cmp qword [rdx], 0
mov qword [rdx], 0
add byte [rax], al
add byte [rdi], cl
invalid
mov al, 1
add byte [rax], al
call fcn.1400f9af0
mov rcx, rax
xor edx, edx
call fcn.140018460
test rax, rax
je 0x1400c886a
mov r14, qword [rax]
mov r15, qword [rax + 8]
lea rcx, [r14 + 1]
mov qword [rax], rcx
test rax, rax
je 0x1400c8873
movabs r12, 0x736f6d6570736575
xor r12, r14
movabs r13, 0x646f72616e646f6d
xor r13, r15
movabs rbp, 0x6c7967656e657261
xor rbp, r14
xor ebp, esi
test rax, rax
jne 0x1400c86b9
lea rax, [0x1401b8ed0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401b8e38]
lea r9, fcn.140001060
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.14015b590
int3

Function at 0x1400d18e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
cmp qword [rdx], 0
je 0x1400d1923
lea rax, [rdx + 8]
cmp qword [rdx + 0x38], 0xffffffffffffffff
je 0x1400d1a87
mov r8, qword [rdx + 0x48]
mov r9, qword [rdx + 0x50]
movups xmm0, xmmword [rdx + 0x58]
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
jmp 0x1400d1a9d
mov r8, qword [rdx + 8]
mov rcx, qword [rdx + 0x48]
mov r9, qword [rdx + 0x50]
jmp 0x1400d194f
mov r8, qword [rdx + 0x48]
mov r9, qword [rdx + 0x50]
movups xmm0, xmmword [rdx + 0x58]
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 1
mov rcx, rsi
mov rdx, rax
call fcn.1400d1bc0
jmp 0x1400d1aaf

Function at 0x1400edf30
Capabilities:
Load assembly via iassembly

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x528
mov r15, r8
mov r14, rdx
mov rsi, rcx
call fcn.1400ecb70
mov qword [rsp + 0x108], rax
mov r13, rdx
lea rcx, [rsp + 0x158]
mov r8d, 0x110
mov rdx, r15
call fcn.14015a1b0
mov rax, qword [r15 + 0x110]
mov r12, qword [r15 + 0x118]
mov rbx, qword [r15 + 0x120]
Function at 0x1400f52d0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x1400148d5
cmp rdx, 4
jae 0x1400148d8
xor eax, eax
xor r8d, r8d
jmp 0x140014970
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140164a80]
movdqa xmm3, xmmword [0x140164a90]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140014900
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140014987
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140014970
ret
sub rdx, rcx
cmp rdx, 0x20
jb 0x1400148c0
jmp fcn.14000a610

Function at 0x1400f9020
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x20], 0

Function at 0x1400f9660
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
or dword [rbx + rcx*4 - 0x7e], eax
add byte [rax], 0
add byte [rax], al

Function at 0x1400f9690
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x24], eax
and al, 0x24

Function at 0x1400f96d0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
add byte [rax], al

Function at 0x1400f9770
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
add byte [rax], al

Function at 0x1400fbb10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
in al, dx
test al, 0
add byte [rax], al

Function at 0x1400fdd20
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
and al, 0x80
add byte [rax], al
add byte [rax - 0x39], cl
test eax, esi
add eax, dword [rax]
add dh, bh
invalid
invalid
dec dword [rax - 0x77]
invalid
loopne 0x1400fdd4e
add byte [rax], al
mov qword [rbp + 0x3c8], 0
add byte [rax], al
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
add byte [rax], al
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400141e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400141f0]
mov dword [rax], 1
mov rax, qword [0x140014200]
mov dword [rax], 1
mov rax, qword [0x1400141d0]
mov dword [rax], 1
mov rax, qword [0x140014080]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400141c0]
mov dword [0x140017020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140014180]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140014160]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140014030]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001a60
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400170b4]
mov r12, rcx
test ebx, ebx
jle 0x140001c00
mov rax, qword [0x1400170b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001b1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001ba3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001b00
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001c22
mov rax, qword [0x1400170b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400170b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b9c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001bb0
add dword [0x1400170b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400170b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b9c
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 ebx, ebx
jmp 0x140001b27
mov rax, qword [0x1400170b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140017120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140017100]
test rbx, rbx
je 0x140002134
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000212b
test r12, r12
je 0x14000212b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002110
lea rcx, [0x140017120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002350
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002368
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002370
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002380
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400023cc
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x1400023c3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x1400023ce
add rax, 0x28
cmp rax, r9
jne 0x1400023b0
xor eax, eax
ret

Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002460
mov rdx, qword [0x140014080]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000244e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000244e
cmp word [rax + 0x18], 0x20b
jne 0x14000244e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002460
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002439
add r12, 0x28
cmp r12, rsi
je 0x140002460
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002430
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140014080]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002490
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002498
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002490
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400024e5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024dc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002490
add rax, 0x28
cmp rax, r9
jne 0x1400024c8
xor eax, eax
ret

Function at 0x1400024f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140014080]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002510
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002518
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002510
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002530
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140014080]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002550
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002558
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002550
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002598
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000258f
test rcx, rcx
je 0x140002550
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002580
xor eax, eax
ret
Function at 0x1400025a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140014080]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400025c0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400025c8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x140014080]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002600
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002608
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002600
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002600
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002644
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002658
add rax, 0x28
cmp r9, rax
jne 0x140002630
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x140014080]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002692
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002692
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002692
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002692
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026ed
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002700
add rdx, 0x28
cmp r10, rdx
jne 0x1400026d8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000270f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000271f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026f6
test ecx, ecx
jg 0x140002708
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003d90
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140014100]
mov rax, qword [rsi]
test rax, rax
je 0x140003e20
cmp qword [rax + 0x30], 0
jne 0x140003e40
lea rbx, [0x140012078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003df0
cmp qword [rax + 0x30], 0
jne 0x140003e10
lea rdx, [0x140012078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003dd2
test rax, rax
jne 0x140003e10
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003de0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003db0
test rax, rax
jne 0x140003e40
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003dbb