joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009134a
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rsi, qword [rsp + 0x58]
mov eax, dword [rdx]
mov edi, r8d
rol edi, 0x19
mov r10d, dword [rdx + 4]
mov ebx, eax
rol ebx, 0x19
mov r11d, dword [rdx + 8]
mov ebp, r10d
rol ebp, 0x19
mov r14d, r11d
rol r14d, 0x19
mov r15d, r8d
rol r15d, 0xe
xor r15d, edi
mov edi, eax
rol edi, 0xe
xor edi, ebx
mov ebx, r10d
rol ebx, 0xe
xor ebx, ebp
mov ebp, r11d
rol ebp, 0xe
xor ebp, r14d
shr r8d, 3
xor r8d, r15d
add r8d, eax
shr eax, 3
xor eax, edi
add eax, r10d
shr r10d, 3
xor r10d, ebx
add r10d, r11d
shr r11d, 3
xor r11d, ebp
add r11d, dword [rdx + 0xc]
add r8d, dword [rsi + 0xc]
add eax, dword [r9]
add r10d, dword [r9 + 4]
add r11d, dword [r9 + 8]
mov edx, dword [rsi + 4]
mov edi, edx
rol edi, 0xf
mov r9d, dword [rsi]
mov esi, edx
rol esi, 0xd
xor esi, edi
shr edx, 0xa
xor edx, esi
add edx, r11d
mov r11d, r9d
rol r11d, 0xf
mov esi, r9d
rol esi, 0xd
xor esi, r11d
shr r9d, 0xa
xor r9d, esi
mov r11d, edx
rol r11d, 0xf
add r9d, r10d
mov r10d, edx
rol r10d, 0xd
xor r10d, r11d
mov r11d, edx
shr r11d, 0xa
xor r11d, r10d
add r11d, eax
mov eax, r9d
rol eax, 0xf
mov r10d, r9d
rol r10d, 0xd
xor r10d, eax
mov eax, r9d
shr eax, 0xa
xor eax, r10d
add eax, r8d
mov dword [rcx], eax
mov dword [rcx + 4], r11d
mov dword [rcx + 8], r9d
mov dword [rcx + 0xc], edx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x10091c8a
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg1 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x10091ca6
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x10092194
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x100d4678]
test ecx, ecx
je 0x100921ad
dec ecx
add rsp, 0x28
jmp fcn.100d1658
lea rcx, [0x100d4660]
call fcn.10093ca0
mov ecx, eax
jmp 0x100921a4

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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x100d46f0]
test ecx, ecx
je 0x100939e4
dec ecx
call fcn.100d1658
cmp rax, 2
jb 0x10093924
mov rdi, rax
cmp qword [rax + 8], 0
je 0x10093924
add rdi, 0x10
jmp 0x100939da
mov ecx, dword [0x100d46f0]
test ecx, ecx
je 0x100939f7
dec ecx
call fcn.100d1658
cmp rax, 1
je 0x100939d8
mov rsi, rax
test rax, rax
jne 0x100939a7
mov qword [rsp + 0x28], 0
lea rax, [0x100d46d8]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x10112520]
mov ecx, 0x18
mov edx, 8
call fcn.100176e0
test rax, rax
je 0x10093a1a
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x100d46f0]
test ecx, ecx
je 0x10093a0a
dec ecx
mov rdx, rsi
call fcn.100d1650
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x100939da
test rcx, rcx
je 0x100939da
lock dec qword [rcx]
jne 0x100939da
call fcn.10093a70
jmp 0x100939da
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x100d46d8]
call fcn.10093ca0
mov ecx, eax
jmp 0x10093906
lea rcx, [0x100d46d8]
call fcn.10093ca0
mov ecx, eax
jmp 0x10093934
lea rcx, [0x100d46d8]
call fcn.10093ca0
mov ecx, eax
jmp 0x1009399f
mov ecx, 8
mov edx, 0x18
call fcn.10017c80
ud2
Function at 0x10093ca0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x10093d25
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x10093d66
cmp dword [rsp + 0x2c], 0
je 0x10093d4a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x10093d80
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x10112480]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x10112480], rsi
jne 0x10093d00
mov byte [0x10112478], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x10093d5c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x10093dcc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x10093d4f
mov edi, dword [rsp + 0x28]
jmp 0x10093d5c
mov edi, dword [rsi + 0x18]
jmp 0x10093d5a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.10093e30
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._rustc_79e9716c980570bfd1f666e3b16ac583f0168962librarycore_srccharmethods.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.100194a0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._rustc_79e9716c980570bfd1f666e3b16ac583f0168962librarycore_srccharmethods.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.10093e80
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x100d4710]
test ecx, ecx
je 0x1009420f
dec ecx
call fcn.100d1658
cmp rax, 2
jb 0x10094199
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x100941fe
mov ecx, dword [0x100d4710]
test ecx, ecx
je 0x10094222
dec ecx
call fcn.100d1658
cmp rax, 1
je 0x10094204
mov rsi, rax
test rax, rax
jne 0x100941f8
movzx eax, byte [0x10112520]
mov ecx, 0x10
mov edx, 8
call fcn.100176e0
test rax, rax
je 0x10094245
mov rsi, rax
lea rax, [0x100d46f8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x100d4710]
test ecx, ecx
je 0x10094235
dec ecx
mov rdx, rsi
call fcn.100d1650
mov word [rsi + 8], 1
add rsi, 9
jmp 0x10094206
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x100d46f8]
call fcn.10093ca0
mov ecx, eax
jmp 0x10094185
lea rcx, [0x100d46f8]
call fcn.10093ca0
mov ecx, eax
jmp 0x100941a5
lea rcx, [0x100d46f8]
call fcn.10093ca0
mov ecx, eax
jmp 0x100941f0
mov ecx, 8
mov edx, 0x10
call fcn.10017c80
ud2
Function at 0x10094c50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x100d46d0]
test ecx, ecx
je 0x10094d0d
dec ecx
call fcn.100d1658
cmp rax, 2
jb 0x10094c80
cmp qword [rax + 8], 0
je 0x10094c80
add rax, 0x10
jmp 0x10094d07
mov ecx, dword [0x100d46d0]
test ecx, ecx
je 0x10094d20
dec ecx
call fcn.100d1658
cmp rax, 1
je 0x10094d05
mov rsi, rax
test rax, rax
jne 0x10094ceb
movzx eax, byte [0x10112520]
mov ecx, 0x20
mov edx, 8
call fcn.100176e0
test rax, rax
je 0x10094d43
mov rsi, rax
lea rax, [0x100d46b8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x100d46d0]
test ecx, ecx
je 0x10094d33
dec ecx
mov rdx, rsi
call fcn.100d1650
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x10094d07
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x100d46b8]
call fcn.10093ca0
mov ecx, eax
jmp 0x10094c65
lea rcx, [0x100d46b8]
call fcn.10093ca0
mov ecx, eax
jmp 0x10094c90
lea rcx, [0x100d46b8]
call fcn.10093ca0
mov ecx, eax
jmp 0x10094ce3
mov ecx, 8
mov edx, 0x20
call fcn.10017c80
ud2

Function at 0x10098920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x1009898b
movzx r10d, byte [rax + 0x10]
movzx r11d, r10b
test r8b, r8b
jne 0x10098ae8
cmp r10b, 5
jb 0x10098ae8
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x1009897b
cmp r11b, 6
je 0x1009897b
mov esi, 2
cmp rdx, 2
jb 0x10098b8a
cmp rsi, rdx
jne 0x10098aa8
xor edx, edx
jmp 0x10098ae8
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
invalid
lea r8, [0x100ef4b8]
mov ecx, 2
call fcn.100194e0
ud2
Function at 0x10098df0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x48], xmm6
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.100b1af0
mov rsi, rdx
test rax, rax
je 0x10098ea7
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x10098e9b
test rax, rax
je 0x10098e9b
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x10098e8e
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.10017770
mov edx, 8
mov rcx, rsi
call fcn.10017770
mov qword [rdi], 0
jmp 0x10099019
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x10098f56
test byte [rsp + 0x41], 4
je 0x10098eff
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov rcx, rsi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x10098f56
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rsi, rsi
je 0x10098f82
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x10099005
mov rbx, qword [rsp + 0x40]
jmp 0x10098f84
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.100d1830
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x10098ff4
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.100d1830
test r15, r15
je 0x10098ff4
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x10099011
mov qword [rdi], 0
mov rcx, rbx
call fcn.100d1830
jmp 0x10099011
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call fcn.100d1830
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x100b59b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x100d4730]
test ecx, ecx
je 0x100b5aa4
dec ecx
call fcn.100d1658
cmp rax, 2
jb 0x100b59e4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x100b59e4
add rdi, 0x10
jmp 0x100b5a9a
mov ecx, dword [0x100d4730]
test ecx, ecx
je 0x100b5ab7
dec ecx
call fcn.100d1658
cmp rax, 1
je 0x100b5a98
mov rsi, rax
test rax, rax
jne 0x100b5a67
mov qword [rsp + 0x28], 0
lea rax, [0x100d4718]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x10112520]
mov ecx, 0x18
mov edx, 8
call fcn.100176e0
test rax, rax
je 0x100b5ada
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x100d4730]
test ecx, ecx
je 0x100b5aca
dec ecx
mov rdx, rsi
call fcn.100d1650
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x100b5a9a
test rcx, rcx
je 0x100b5a9a
lock dec qword [rcx]
jne 0x100b5a9a
call fcn.100b5b10
jmp 0x100b5a9a
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x100d4718]
call fcn.10093ca0
mov ecx, eax
jmp 0x100b59c6
lea rcx, [0x100d4718]
call fcn.10093ca0
mov ecx, eax
jmp 0x100b59f4
lea rcx, [0x100d4718]
call fcn.10093ca0
mov ecx, eax
jmp 0x100b5a5f
mov ecx, 8
mov edx, 0x18
call fcn.10017c80
ud2

Function at 0x100b6800
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x100b6836
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x100b2ec0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.100194a0
ud2
Function at 0x100beebf
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x100d4750]
test ecx, ecx
je 0x100befcf
dec ecx
call fcn.100d1658
cmp rax, 2
jb 0x100beefa
cmp qword [rax + 8], 0
je 0x100beefa
mov rcx, rax
add rcx, 0x10
mov rax, qword [rax + 0x10]
jmp 0x100befb0
mov ecx, dword [0x100d4750]
test ecx, ecx
je 0x100befe2
dec ecx
call fcn.100d1658
mov rdi, rax
cmp rax, 1
je 0x100befc5
test rdi, rdi
jne 0x100bef69
mov al, byte [0x10112520]
mov ecx, 0x20
mov edx, 8
call fcn.100176e0
test rax, rax
je 0x100bf008
mov rdi, rax
lea rax, [0x100d4738]
mov qword [rdi], rax
and qword [rdi + 8], 0
mov ecx, dword [0x100d4750]
test ecx, ecx
je 0x100beff5
dec ecx
mov rdx, rdi
call fcn.100d1650
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x100bef97
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x100bef9c
call fcn.100b6800
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
mov rdx, qword [rcx + 8]
lea r8, [rax + 1]
mov qword [rcx], r8
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdx
xor edi, edi
mov qword [rsi], rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x100d4738]
call fcn.10093ca0
mov ecx, eax
jmp 0x100beed8
lea rcx, [0x100d4738]
call fcn.10093ca0
mov ecx, eax
jmp 0x100bef0a
lea rcx, [0x100d4738]
call fcn.10093ca0
mov ecx, eax
jmp 0x100bef61
mov ecx, 8
mov edx, 0x20
call fcn.10017c80
ud2

Function at 0x100c4c32
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x100c4c39
test al, 1
je 0x100c4c58
test al, 2
jne 0x100c4c6d
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x100f3e98]
mov edx, 0x23
jmp 0x100c4c80
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x100f3ed8]
mov edx, 0x25
call fcn.1001a1e0
ud2
Function at 0x100d2480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x10112ae4]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x100d25a0
mov rax, qword [0x10112ae8]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x100d24cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x100d2586
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x100d24b0
mov rcx, rsi
call fcn.100d30c0
test rax, rax
mov r12, rax
je 0x100d25d8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x10112ae8]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.100d3210
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x10112ae8]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x100d25bb
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x100d257f
sub eax, 0x40
and eax, 0xffffffbf
je 0x100d257f
add rbx, qword [0x10112ae8]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100d25a7
add dword [0x10112ae4], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.ntdll.dll_memcpy
xor ebx, ebx
jmp 0x100d24d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.100d2410
mov rax, qword [0x10112ae8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.100d2410
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.100d2410
nop
nop dword [rax + rax]

Function at 0x100d2d30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x10112dc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x10112da0]
test rbx, rbx
je 0x100d2d84
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x100d2d7b
test rsi, rsi
je 0x100d2d7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x100d2d60
lea rcx, [0x10112dc0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x100d30c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x100f82e0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x100d30e0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.100d2fa0
test eax, eax
je 0x100d30d8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x100d313d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x100d3134
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x100d30d8
add rdx, 0x28
cmp rdx, r9
jne 0x100d3120
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140002590
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x1400025dc
cmp rax, rbx
jne 0x1400025cf
mov ebx, 1
mov esi, ebx
jmp 0x1400025e1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400025b4
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400025f7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000265c
mov eax, dword [0x140004658]
test eax, eax
jne 0x140002656
mov dword [0x140004658], ebx
lea r15, [0x1400033c0]
lea rdi, [0x1400033a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002648
test eax, eax
jne 0x14000264c
cmp qword [rdi], 0
je 0x14000263d
mov rax, qword [rdi]
mov rcx, qword [0x140003388]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000261e
test eax, eax
je 0x14000265c
mov eax, 0xff
jmp 0x140002738
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002683
lea rdx, [0x1400033a0]
lea rcx, [0x140003390]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x140002690
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x1400026c4
lea rcx, [0x140004660]
call fcn.140002940
test eax, eax
je 0x1400026c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003388]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.1400019b0
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x1400026f4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002709
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002738
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call 0x14017b000
add rsp, 0x28
jmp 0x140002590

Function at 0x14000282c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002878
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002870
cmp dword [rcx + 0x3c], edx
jl 0x140002870
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002870
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002878
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140010aa0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140010aad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140010abd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140010aa5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140010ad5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140010ac2
sub eax, 3
jb 0x140010aef
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140010b26
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140010b16
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140010b14
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140010b03
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140010a62
jmp 0x140010aad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1000
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140010b72
cmp rsi, rcx
jae 0x140010b7a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140010b59
cmp al, 0x8f
ja 0x140010b59
cmp byte [rsi - 2], 0xf
je 0x140010b5f
sub al, 0xe8
cmp al, 1
ja 0x140010b43
cmp rsi, rcx
jae 0x140010b7a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140010b49
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140010b7a
lodsb al, byte [rsi]
jmp 0x140010b59
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe000]
mov eax, dword [rdi]
or eax, eax
je 0x140010bd7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x10224]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140010b87
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140010bd1
mov qword [rbx], rax
add rbx, 8
jmp 0x140010ba7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140010c11
cmp al, 0xef
ja 0x140010c03
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140010be3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140010bf2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140010c65
sub rsp, 0xffffffffffffff80
jmp 0x140001380
Function at 0x140001dae
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0xfaba0065
mov eax, 0xfaba0065
add rsp, 0x10
pop rbp
ret

Function at 0x140001e44
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0x2fa62ca8
mov eax, 0x2fa62ca8
add rsp, 0x10
pop rbp
ret