joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494810
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
mov r12, 0xffffffffffffffba
mov rax, qword [rsp + 0x1c8]
mov esi, dword [rax]
mov rdi, rdx
test esi, esi
mov edx, 3
mov r13, rcx
cmove esi, edx
mov r14, r8
mov rbx, r9
cmp rdi, r9
jb 0x49498f
mov r12, 0xffffffffffffffb8
cmp r9, 0x7f
jbe 0x49498f
mov r12, 0xffffffffffffffba
cmp rdi, 0xff
jbe 0x49498f
mov rcx, r14
mov r12d, dword [rax + 8]
xor r8d, r8d
mov rdx, r9
mov dword [rsp + 0x50], 0xec30a437
mov ebp, dword [rax + 4]
call sym.XXH64
mov rcx, rax
test r12d, r12d
je 0x4949a8
mov dword [rsp + 0x54], r12d
cmp ebp, 1
jbe 0x494910
mov r12, qword [dbg.__acrt_iob_func]
mov ecx, 2
call r12
lea r8, [0x0059063f]
lea rdx, str._r_70s_r
mov rcx, rax
call sym.fprintf
mov ecx, 2
call r12
mov rcx, rax
call sym.fflush
mov ecx, 2
call r12
mov r8d, 0x10
mov edx, 1
lea rcx, str.statistics_...__n
mov r9, rax
call sym.fwrite
mov ecx, 2
call r12
mov rcx, rax
call sym.fflush
mov eax, dword [rsp + 0x1c0]
mov dword [rsp + 0x40], ebp
mov r8d, esi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov r9, qword [rsp + 0x1b0]
mov edx, 0xf8
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x20], rax
call sym.ZDICT_analyzeEntropy
mov r12, rax
cmp rax, 0xffffffffffffff88
ja 0x49498f
lea rsi, [rax + 8]
lea r12, [rbx + rsi]
cmp r12, rdi
jbe 0x49496f
mov rbx, rdi
mov r12, rdi
sub rbx, rsi
lea rcx, [r13 + rsi]
mov r8, rbx
mov rdx, r14
call sym.memmove
lea rdx, [rsp + 0x50]
mov r8, rsi
mov rcx, r13
call sym.memcpy
mov rax, r12
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movabs rdx, 0x8000800080008001
mul rdx
shr rdx, 0x1e
mov rax, rdx
shl rax, 0x10
sub rax, rdx
shl rax, 0xf
sub rcx, rax
lea r12d, [rcx + 0x8000]
jmp 0x49489f
Function at 0x4fb510
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
movabs rax, 0x27d4eb2f165667c5
mov r10d, dword [rcx + 0x48]
mov r11, qword [rcx + 0x18]
mov rbx, qword [rcx]
add rax, r11
lea r9, [rcx + 0x28]
add r10, r9
cmp rbx, 0x1f
jbe 0x4fb5f1
mov rax, qword [rcx + 8]
mov r12, qword [rcx + 0x10]
movabs rdx, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
mov r8, qword [rcx + 0x20]
mov rbp, rax
mov rdi, r12
rol rax, 1
imul rbp, rdx
rol rdi, 7
add rax, rdi
imul r12, rdx
mov rdi, r11
rol rdi, 0xc
imul r11, rdx
rol rbp, 0x1f
imul rdx, r8
add rax, rdi
mov rdi, r8
imul rbp, rsi
rol rdi, 0x12
add rdi, rax
rol r11, 0x1f
movabs rax, 0x85ebca77c2b2ae63
imul r11, rsi
rol rdx, 0x1f
xor rdi, rbp
imul rdx, rsi
imul rdi, rsi
mov rbp, rdi
mov rdi, r12
rol rdi, 0x1f
imul rdi, rsi
mov r12, rdi
lea rdi, [rbp + rax]
xor rdi, r12
imul rdi, rsi
add rdi, rax
xor r11, rdi
imul r11, rsi
lea r8, [r11 + rax]
xor rdx, r8
imul rdx, rsi
add rax, rdx
lea rsi, [rcx + 0x30]
lea rdx, [rbx + rax]
cmp r10, rsi
jb 0x4fb659
movabs rbx, 0xc2b2ae3d27d4eb4f
mov r8, rsi
movabs r9, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop
mov rax, qword [r8 - 8]
add r8, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r9
xor rax, rdx
rol rax, 0x1b
imul rax, r9
lea rdx, [rax + r11]
cmp r10, r8
jae 0x4fb620
mov rax, r10
sub rax, rcx
lea r9, [rax - 0x30]
and r9, 0xfffffffffffffff8
add r9, rsi
lea rcx, [r9 + 4]
cmp r10, rcx
jb 0x4fb698
movabs r8, 0x9e3779b185ebca87
mov eax, dword [r9]
mov r9, rcx
imul rax, r8
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp r10, r9
jbe 0x4fb6d7
movabs r8, 0x27d4eb2f165667c5
movabs rcx, 0x9e3779b185ebca87
nop dword [rax]
movzx eax, byte [r9]
add r9, 1
imul rax, r8
xor rax, rdx
rol rax, 0xb
imul rax, rcx
mov rdx, rax
cmp r10, r9
jne 0x4fb6b8
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4fd720
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sym.fread
mov r12, rax
cmp rbx, rax
je 0x4fd753
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x4fd760
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r13
call sym.checkErr__systemZio_141.part.0
nop
nop dword [rax]

Function at 0x4fe160
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov edx, 1
mov r9, r12
call sym.fwrite
mov rcx, r12
mov r13, rax
call sym.ferror
test eax, eax
jne 0x4fe196
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret
mov rcx, r12
call sym.checkErr__systemZio_141.part.0
nop
nop
Function at 0x4fe1a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [dbg.__acrt_iob_func]
xor ebx, ebx
mov rbp, rcx
mov rsi, rdx
test rdx, rdx
jle 0x4fe1e3
nop
mov r12, qword [rbp + rbx*8]
mov ecx, 1
add rbx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call sym.writeWindows__systemZio_205
cmp rsi, rbx
jg 0x4fe1c0
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x00594561]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.fflush

Function at 0x4fe540
Capabilities:
Write file on windows

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

Function at 0x4fe5d0
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.fflush
mov ecx, 1
call sym.exit
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x503820
Capabilities:
Write file on windows

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

Disassembly:
push rbp
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x148
cmp qword [0x005f01e0], 0
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rdx
mov byte [rbp - 0x119], 1
je 0x506b67
mov rax, qword [0x005e8240]
lea rcx, [rbp - 0x108]
mov rdx, rbp
mov qword [rbp - 0x118], rax
lea rax, [rbp - 0x118]
mov qword [0x005e8240], rax
call sym._setjmp
cdqe
mov qword [rbp - 0x110], rax
test rax, rax
jne 0x506b88
xor r12d, r12d
cmp qword [rbp + 0x28], 0
je 0x506b38
mov rcx, qword [rbp + 0x28]
mov esi, 7
call sym.strlen
lea r8, [0x005f0200]
lea rcx, [0x0058c040]
cmp rax, 7
mov rbx, rax
cmovge rsi, rax
lea rdx, [rsi + 0x11]
call sym.rawNewObj__system_5699
movq xmm0, rbx
movq xmm1, rsi
mov rdx, qword [rbp + 0x28]
punpcklqdq xmm0, xmm1
lea rcx, [rax + 0x10]
lea r8, [rbx + 1]
mov r12, rax
movups xmmword [rax], xmm0
call sym.memcpy
mov rcx, r12
call qword [0x005f01e0]
mov rax, qword [0x005e8240]
cmp qword [rbp - 0x110], 0
mov byte [rbp - 0x119], 0
mov rax, qword [rax]
mov qword [0x005e8240], rax
jne 0x506bf5
movzx eax, byte [rbp - 0x119]
test al, al
jne 0x506c10
add rsp, 0x148
pop rbx
pop rsi
pop r12
pop rbp
ret
mov rax, qword [0x005e8240]
mov rax, qword [rax]
mov qword [rbp - 0x110], 0
mov qword [0x005e8240], rax
mov rax, qword [0x005efe60]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x506bc5
add qword [rbx - 0x10], 8
mov rax, qword [0x005efe60]
test rax, rax
je 0x506be0
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x506be0
call sym.addZCT__system_5316.constprop.0
cmp qword [rbp - 0x110], 0
mov qword [0x005efe60], rbx
je 0x506b67
mov rcx, qword [0x005efe60]
test rcx, rcx
je 0x506c40
call sym.raiseExceptionAux__system_2868
jmp 0x506b67
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x30]
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.fflush
jmp 0x506b76
call sym.sysFatal__system_2900.constprop.0
nop
nop word cs:[rax + rax]

Function at 0x50f9d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [r8]
mov rbx, qword [r8 + 8]
mov rdi, rcx
mov rbp, rdx
test rcx, rcx
je 0x50fa01
mov rcx, qword [rcx]
lea rdx, [0x005fa640]
call sym.isObj
test al, al
je 0x50faa0
mov rax, qword [rbp]
test rsi, rsi
js 0x50fa68
test rax, rax
je 0x50fa50
mov rdx, qword [rax]
cmp rdx, rsi
jle 0x50fa70
add rbx, 1
jo 0x50fab4
sub rbx, rsi
jo 0x50faaa
test rbx, rbx
js 0x50fa80
mov rax, qword [rbp]
mov rcx, qword [rdi + 0x58]
mov r8, rbx
lea rdx, [rax + rsi + 0x10]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.readBuffer__systemZio_144
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call sym.raiseIndexError2
jmp 0x50fa17
test rax, rax
je 0x50fa50
mov rdx, qword [rax]
sub rdx, 1
jmp 0x50fa57
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
jmp 0x50fa2f
call sym.raiseObjectConversionError
jmp 0x50fa01
call sym.raiseOverflow
jmp 0x50fa2a
call sym.raiseOverflow
jmp 0x50fa21
Function at 0x50fac0
Capabilities:
Read file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r12, rdx
mov rsi, r8
test rcx, rcx
je 0x50fae9
mov rcx, qword [rcx]
lea rdx, [0x005fa640]
call sym.isObj
test al, al
je 0x50fb20
test rsi, rsi
js 0x50fb08
mov rcx, qword [rbx + 0x58]
mov r8, rsi
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.readBuffer__systemZio_144
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call sym.raiseRangeErrorI
jmp 0x50faee
call sym.raiseObjectConversionError
jmp 0x50fae9

Function at 0x528750
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rsi, [rdx + 3]
test rdx, rdx
mov rbx, rcx
mov rdi, rdx
cmovns rsi, rdx
and rsi, 0xfffffffffffffffc
jle 0x5288b0
test rdx, rdx
jle 0x5288a0
cmp rdx, rsi
mov rax, rsi
cmovle rax, rdx
xor r12d, r12d
xor r13d, r13d
nop dword [rax]
mov edx, dword [rbx + r12]
add r12, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, r13d
rol edx, 0xd
lea r13d, [rdx + rdx*4 - 0x19ab949c]
cmp r12, rax
jl 0x528798
cmp rsi, r12
jle 0x528805
lea rbp, [rdi - 1]
nop dword [rax + rax]
mov rdx, rbp
mov rcx, r12
call sym.raiseIndexError2
mov edx, dword [rbx + r12]
add r12, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, r13d
rol edx, 0xd
lea r13d, [rdx + rdx*4 - 0x19ab949c]
cmp rsi, r12
jg 0x5287d0
mov rax, rdi
xor ebp, ebp
sar rax, 0x3f
shr rax, 0x3e
lea r14, [rdi + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x528866
lea r12, [rdi - 1]
nop word cs:[rax + rax]
sub r14, 1
lea r15, [rsi + r14]
cmp rdi, r15
jg 0x528848
mov rdx, r12
mov rcx, r15
call sym.raiseIndexError2
movzx eax, byte [rbx + r15]
shl ebp, 8
or ebp, eax
test r14, r14
jne 0x528830
imul ebp, ebp, 0xcc9e2d51
rol ebp, 0xf
imul ebp, ebp, 0x1b873593
mov edx, r13d
xor edx, edi
xor edx, ebp
mov ebp, edx
shr ebp, 0x10
xor ebp, edx
imul ebp, ebp, 0x85ebca6b
mov eax, ebp
shr eax, 0xd
xor eax, ebp
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
xor r13d, r13d
jmp 0x5287c7
xor esi, esi
xor r13d, r13d
jmp 0x528805

Function at 0x5288c0
Capabilities:
Hash data using murmur3

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
mov r12, rcx
test rcx, rcx
je 0x5288dc
mov rdx, qword [rcx]
test rdx, rdx
js 0x5288f0
add r12, 0x10
mov rcx, r12
add rsp, 0x20
pop r12
jmp sym.murmurHash__pureZhashes_192
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call sym.raiseIndexError4
mov rdx, qword [r12]
jmp 0x5288d8
Function at 0x575dd0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
test rdx, rdx
je 0x575e36
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
cmp rdx, 0xffffffffffffffff
je 0x575e40
mov rax, 0xffffffffffffffff
xor edx, edx
div r10
not rdx
nop dword [rax]
lea rax, [r8 + r9]
xor r9, r8
ror r8, 9
mov r11, r9
xor r8, r9
ror r9, 0x1c
shl r11, 0xe
xor r8, r11
cmp rdx, rax
jb 0x575df8
movq xmm0, r8
movq xmm1, r9
xor edx, edx
punpcklqdq xmm0, xmm1
movups xmmword [rcx], xmm0
lea rcx, [r10 + 1]
div rcx
mov r10, rdx
mov rax, r10
ret
lea r10, [r8 + r9]
xor r9, r8
ror r8, 9
mov rax, r9
xor r8, r9
ror r9, 0x1c
shl rax, 0xe
mov qword [rcx + 8], r9
xor r8, rax
mov rax, r10
mov qword [rcx], r8
ret

Function at 0x575e70
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r10, rdx
test rdx, rdx
je 0x575ede
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
cmp rdx, 0xffffffffffffffff
je 0x575ee8
mov rax, 0xffffffffffffffff
xor edx, edx
div r10
not rdx
nop word [rax + rax]
lea rax, [r9 + r8]
xor r9, r8
ror r8, 9
mov r11, r9
xor r8, r9
ror r9, 0x1c
shl r11, 0xe
xor r8, r11
cmp rax, rdx
ja 0x575ea0
movq xmm0, r8
movq xmm1, r9
xor edx, edx
punpcklqdq xmm0, xmm1
movups xmmword [rcx], xmm0
lea rcx, [r10 + 1]
div rcx
mov r8, rdx
mov rax, r8
ret
mov rax, r8
mov rdx, r8
add r8, r9
xor rax, r9
ror rdx, 9
mov r10, rax
xor rdx, rax
ror rax, 0x1c
shl r10, 0xe
mov qword [rcx + 8], rax
mov rax, r8
xor rdx, r10
mov qword [rcx], rdx
ret

Function at 0x57a700
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov edx, 0x14
jmp sym.hash__neverwinterZresnwsync_56

Function at 0x589de0
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 0x589e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x005e7b34]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x589ff8
mov rax, qword [0x005e7b38]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x589e9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x589f27
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x589e80
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x58a032
mov rax, qword [0x005e7b38]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005e7b38]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x58a041
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x589f20
sub eax, 4
and eax, 0xfffffffb
jne 0x589fb0
add dword [0x005e7b34], 1
cmp ebx, 8
jae 0x589f58
test bl, 4
jne 0x58a000
test ebx, ebx
je 0x589f49
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x58a020
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x589f49
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x589f8a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x005e7b38]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x589f20
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 edi, edi
jmp 0x589ea7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x589f49
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x589f49
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x005e7b38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x58a820
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005e7e20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005e7e00]
test rbx, rbx
je 0x58a874
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 0x58a86b
test r12, r12
je 0x58a86b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x58a850
lea rcx, [0x005e7e20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x58aaa0
Capabilities:
Parse pe header

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

Function at 0x58aac0
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 0x58ab05
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x58aafc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x58ab07
add rax, 0x28
cmp rax, r9
jne 0x58aae8
xor eax, eax
ret

Function at 0x58abb0
Capabilities:
Enumerate pe sections

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

Function at 0x58ad10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x005c7ef0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x58ad7f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x58ad7f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x58ad7d
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 0x58ad74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x58ad88
add rax, 0x28
cmp rax, r9
jne 0x58ad60
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x58ada0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x005c7ef0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x58ae18
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x58ae18
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x58ae18
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x58ae18
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x58ae0c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x58ae20
add rdx, 0x28
cmp rdx, r10
jne 0x58adf8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x58ae30
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x58ae3e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x58ae15
test r8d, r8d
jg 0x58ae28
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140008930
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rbp - 0x50], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov byte [rbp + 0x3b], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x70], 0
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp - 0x38], rax
xor edx, edx
xor eax, eax
mov r8d, eax
lea r9, [rbp - 0x38]
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
mov dword [rbp + 0x3c], eax
cmp eax, 0
jne 0x1400089ec
mov rcx, qword [rbp - 0x38]
mov rax, qword [sym.imp.kernel32.dll_lstrlenW]
call rax
movsxd rdx, eax
mov qword [rbp + 0x40], rdx
mov rcx, qword [rbp - 0x38]
call fcn.140008630
mov qword [rbp - 0x58], rax
mov r8, rdx
mov rdx, qword [rbp - 0x58]
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], r8
mov byte [rbp + 0x3b], 1
lea rcx, [rbp - 0x30]
call fcn.140010260
mov rcx, qword [rbp - 0x38]
mov rax, qword [sym.imp.ole32.dll_CoTaskMemFree]
call rax
jmp 0x140008a00
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x48]
mov byte [rax + 0x18], 2
jmp 0x140008a4a
mov byte [rbp + 0x3b], 0
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x10], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp + 0x10]
call fcn.140008900
jmp 0x140008a23
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x10]
mov qword [rax], rcx
mov rcx, qword [rbp - 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 8]
mov qword [rax + 0x18], rcx
mov byte [rbp + 0x3b], 0
mov rax, qword [rbp - 0x40]
add rsp, 0x100
pop rbp
ret