joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a020
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
xorps xmm15, xmm15
xor r14, r14
mov rax, qword [0x00645db8]
mov rax, qword gs:[rax]
cmp rax, 0
je 0x46a0bb
mov r14, qword [rax]
sub rsp, 0x10
mov rax, rcx
mov rbx, rdx
call sym.runtime.sigtrampgo
add rsp, 0x10
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
pop rbp
ret

Function at 0x46a2e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
mov rax, qword [0x00645db8]
mov rax, qword gs:[rax]
cmp rax, 0
jne 0x46a377
int 3
mov r14, qword [rax]
sub rsp, 0x28
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], r9
call sym.runtime.sehhandler.abi0
mov eax, dword [rsp + 0x20]
add rsp, 0x28
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
add rsp, 0x28
pop rbp
ret
Function at 0x46a740
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46a774
mov rcx, 0x28
jmp 0x46a77f
shl rcx, 3
add rcx, 0x1480
mov qword [0x00645db8], rcx
pop rbp
ret
Function at 0x485b60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x485c2a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00645db8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x485c0f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004cf840]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x485bfe
mov edi, 1
lea rsi, [0x004cf840]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0051b088]
lea rsi, [0x0051a818]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString

Function at 0x4a8600
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a8d3f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4a862d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4a88b1
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4a88dd
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x0051c7e0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004cf740]
lea rbx, [0x0051af20]
call sym.runtime.gopanic
inc rax
cmp rax, r8
jge 0x4a8902
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4a8937
lea rdi, [0x004cf7c0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4a8623
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4a891b
jmp 0x4a88f0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.internal_bisect.Hash

Function at 0x4a8ee0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4a8ef7
inc rax
cmp rax, 4
jge 0x4a8f0f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4a8ef4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4a8f20
inc rax
cmp rax, 4
jge 0x4a8f2e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4a8f57
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4a8f3b
jmp 0x4a8f1d
Function at 0x14000b2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rdx
mov rdi, rcx
mov al, byte [rdx + 0x4c]
mov byte [rcx], al
mov eax, dword [rdx]
mov dword [rcx + 8], eax
movups xmm0, xmmword [rdx + 4]
movdqu xmmword [rcx + 0xc], xmm0
add rdx, 0x4e
movzx r8d, word [rbx + 0x14]
add rcx, 0x20
call fcn.140004eb0
movzx eax, word [rbx + 0x14]
lea rdx, [rbx + 0x4e]
lea rdx, [rdx + rax*2]
movzx r8d, word [rbx + 0x16]
sub r8, rax
lea rcx, [rdi + 0x40]
call fcn.140004eb0
mov eax, dword [rbx + 0x18]
mov dword [rdi + 0x60], eax
mov rax, qword [rbx + 0x1c]
mov qword [rdi + 0x64], rax
mov eax, dword [rbx + 0x24]
mov dword [rdi + 0x6c], eax
mov eax, dword [rbx + 0x28]
mov dword [rdi + 0x70], eax
mov eax, dword [rbx + 0x2c]
mov dword [rdi + 0x74], eax
mov eax, dword [rbx + 0x30]
mov dword [rdi + 0x78], eax
mov eax, dword [rbx + 0x34]
mov dword [rdi + 0x7c], eax
mov eax, dword [rbx + 0x38]
mov dword [rdi + 0x80], eax
movzx eax, word [rbx + 0x16]
lea rdx, [rbx + 0x4e]
lea rdx, [rdx + rax*2]
movzx r8d, word [rbx + 0x3c]
sub r8, rax
lea rcx, [rdi + 0x88]
call fcn.140004eb0
movzx eax, word [rbx + 0x3c]
lea rdx, [rbx + 0x4e]
lea rdx, [rdx + rax*2]
movzx r8d, word [rbx + 0x3e]
sub r8, rax
lea rcx, [rdi + 0xa8]
call fcn.140004eb0
movzx eax, word [rbx + 0x3e]
lea rdx, [rbx + 0x4e]
lea rdx, [rdx + rax*2]
movzx r8d, word [rbx + 0x40]
sub r8, rax
lea rcx, [rdi + 0xc8]
call fcn.140004eb0
movzx eax, word [rbx + 0x40]
lea rdx, [rbx + 0x4e]
lea rdx, [rdx + rax*2]
movzx r8d, word [rbx + 0x42]
sub r8, rax
lea rcx, [rdi + 0xe8]
call fcn.140004eb0
movzx eax, word [rbx + 0x42]
lea rdx, [rbx + 0x4e]
lea rdx, [rdx + rax*2]
movzx r8d, word [rbx + 0x44]
sub r8, rax
lea rcx, [rdi + 0x108]
call fcn.140004eb0
movzx eax, word [rbx + 0x48]
lea rdx, [rbx + 0x4e]
lea rdx, [rdx + rax*2]
movzx r8d, word [rbx + 0x4a]
sub r8, rax
lea rcx, [rdi + 0x128]
call fcn.140004eb0
movzx eax, word [rbx + 0x44]
lea rdx, [rbx + 0x4e]
lea rdx, [rdx + rax*2]
movzx r8d, word [rbx + 0x46]
sub r8, rax
lea rcx, [rdi + 0x148]
call fcn.140004eb0
movzx eax, word [rbx + 0x46]
lea rdx, [rbx + 0x4e]
lea rdx, [rdx + rax*2]
movzx r8d, word [rbx + 0x48]
sub r8, rax
lea rcx, [rdi + 0x168]
call fcn.140004eb0
nop
mov eax, 1
jmp 0x14000b46b
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140018c98
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
test r8d, r8d
je 0x140018e80
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
push r15
mov edi, r8d
mov r12, rdx
mov r9, rcx
xor r10d, r10d
mov edx, dword [r9 + 8]
movzx ecx, byte [r10 + r12]
shr rdx, 2
mov eax, dword [r9 + rdx*4 + 0x20]
shl eax, 8
or ecx, eax
mov dword [r9 + rdx*4 + 0x20], ecx
inc dword [r9 + 8]
cmp dword [r9 + 8], 0x40
jne 0x140018e58
lea rcx, [r9 + 0x28]
mov edx, 0x40
mov eax, dword [rcx + 0x2c]
xor eax, dword [rcx + 0x18]
xor eax, dword [rcx - 8]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
rol eax, 1
mov dword [rcx + 0x34], eax
sub rdx, 1
jne 0x140018cfc
mov r13d, dword [r9 + 0xc]
lea rsi, [r9 + 0x20]
mov r11d, dword [r9 + 0x10]
lea r14d, [rdx + 0x14]
mov r8d, dword [r9 + 0x14]
mov ebp, r13d
mov ebx, dword [r9 + 0x18]
mov r15d, dword [r9 + 0x1c]
mov eax, r8d
mov edx, r11d
and eax, r11d
not edx
and edx, ebx
mov ecx, ebp
rol ecx, 5
or edx, eax
add ecx, r15d
mov r15d, ebx
add ecx, edx
mov ebx, r8d
add ecx, dword [rsi]
mov r8d, r11d
ror r8d, 2
lea rsi, [rsi + 4]
mov r11d, ebp
lea ebp, [rcx + 0x5a827999]
sub r14, 1
jne 0x140018d35
mov r14d, 0x14
lea rdx, [r9 + 0x70]
mov esi, r14d
mov eax, ebx
mov ecx, ebp
xor eax, r8d
rol ecx, 5
xor eax, r11d
add eax, ecx
add eax, dword [rdx]
lea rdx, [rdx + 4]
add eax, r15d
mov r15d, ebx
mov ebx, r8d
mov r8d, r11d
ror r8d, 2
mov r11d, ebp
lea ebp, [rax + 0x6ed9eba1]
sub rsi, 1
jne 0x140018d7d
lea rsi, [r9 + 0xc0]
mov edx, ebp
mov ecx, r8d
or ecx, r11d
rol edx, 5
and ecx, ebx
mov eax, r8d
and eax, r11d
or ecx, eax
add ecx, dword [rsi]
lea eax, [r15 + rdx]
add eax, 0x8f1bbcdc
lea rsi, [rsi + 4]
add eax, ecx
mov r15d, ebx
mov ebx, r8d
mov r8d, r11d
ror r8d, 2
mov r11d, ebp
mov ebp, eax
sub r14, 1
jne 0x140018db8
lea rdx, [r9 + 0x110]
lea esi, [r14 + 0x14]
mov eax, ebx
mov ecx, ebp
xor eax, r8d
rol ecx, 5
xor eax, r11d
add ecx, r15d
add eax, 0xca62c1d6
mov r15d, ebx
add eax, dword [rdx]
mov ebx, r8d
mov r8d, r11d
lea rdx, [rdx + 4]
add eax, ecx
ror r8d, 2
mov r11d, ebp
mov ebp, eax
sub rsi, 1
jne 0x140018e01
add dword [r9 + 0x10], r11d
add eax, r13d
add dword [r9 + 0x14], r8d
add dword [r9 + 0x18], ebx
add dword [r9 + 0x1c], r15d
add qword [r9], 0x200
and dword [r9 + 8], esi
mov dword [r9 + 0xc], eax
inc r10d
cmp r10d, edi
jne 0x140018cc8
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x14001923c
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
push r15
mov r8, rcx
mov edx, 0x40
add rcx, 0x28
mov eax, dword [rcx + 0x2c]
xor eax, dword [rcx + 0x18]
xor eax, dword [rcx - 8]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
rol eax, 1
mov dword [rcx + 0x34], eax
sub rdx, 1
jne 0x140019263
mov r15d, dword [r8 + 0xc]
lea ebx, [rdx + 0x14]
mov r12d, dword [r8 + 0x10]
lea r14, [r8 + 0x20]
mov r13d, dword [r8 + 0x14]
mov ebp, ebx
mov r11d, dword [r8 + 0x18]
mov edi, r15d
mov esi, dword [r8 + 0x1c]
mov r10d, r12d
mov r9d, r13d
mov eax, r9d
mov edx, r10d
and eax, r10d
not edx
and edx, r11d
mov ecx, edi
rol ecx, 5
or edx, eax
add ecx, esi
mov esi, r11d
add ecx, edx
mov r11d, r9d
add ecx, dword [r14]
mov r9d, r10d
ror r9d, 2
lea r14, [r14 + 4]
mov r10d, edi
lea edi, [rcx + 0x5a827999]
sub rbp, 1
jne 0x1400192a3
lea rdx, [r8 + 0x70]
mov rbp, rbx
mov eax, r11d
mov ecx, edi
xor eax, r9d
rol ecx, 5
xor eax, r10d
add eax, ecx
add eax, dword [rdx]
lea rdx, [rdx + 4]
add eax, esi
mov esi, r11d
mov r11d, r9d
mov r9d, r10d
ror r9d, 2
mov r10d, edi
lea edi, [rax + 0x6ed9eba1]
sub rbp, 1
jne 0x1400192e6
lea rbp, [r8 + 0xc0]
mov r14, rbx
mov edx, edi
mov ecx, r9d
or ecx, r10d
rol edx, 5
and ecx, r11d
mov eax, r9d
and eax, r10d
or ecx, eax
add ecx, dword [rbp]
lea eax, [rsi + rdx]
add eax, 0x8f1bbcdc
lea rbp, [rbp + 4]
add eax, ecx
mov esi, r11d
mov r11d, r9d
mov r9d, r10d
ror r9d, 2
mov r10d, edi
mov edi, eax
sub r14, 1
jne 0x140019324
lea rdx, [r8 + 0x110]
mov eax, r11d
mov ecx, edi
xor eax, r9d
rol ecx, 5
xor eax, r10d
add ecx, esi
add eax, 0xca62c1d6
mov esi, r11d
add eax, dword [rdx]
mov r11d, r9d
mov r9d, r10d
lea rdx, [rdx + 4]
add eax, ecx
ror r9d, 2
mov r10d, edi
mov edi, eax
sub rbx, 1
jne 0x14001936a
add dword [r8 + 0x1c], esi
add eax, r15d
add dword [r8 + 0x18], r11d
add qword [r8], 0x200
and dword [r8 + 8], ebx
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov dword [r8 + 0xc], eax
lea eax, [r12 + r10]
mov dword [r8 + 0x10], eax
lea eax, [r9 + r13]
mov dword [r8 + 0x14], eax
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x140029744
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, r9
mov rbp, r8
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor r13d, r13d
mov qword [rcx + 8], r13
mov qword [rcx + 0x28], r13
mov qword [rcx + 0x30], r13
mov dword [rcx + 0x38], r13d
lea r14, [rcx + 0x40]
xor edx, edx
mov r8d, 0x98
mov rcx, r14
call sub.msvcrt.dll_memset
lea rdi, [rbx + 0x2dc]
mov word [rdi], r13w
lea r15, [rbx + 0xdc]
mov word [r15], r13w
mov dword [rbx + 0xd8], 1
mov dword [r14], 0x98
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x44]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 0x114
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
je 0x140029819
cmp dword [rsp + 0x44], 5
jae 0x140029820
cmp dword [rsp + 0x44], 4
jne 0x140029819
cmp dword [rsp + 0x48], 0x5a
jae 0x140029820
mov dword [r14], 0x88
mov qword [rbx + 0x70], rdi
mov edx, 0x104
mov dword [rbx + 0x78], edx
mov qword [rbx + 0xa8], rbp
mov qword [rbx + 0x80], r15
mov dword [rbx + 0x88], 0x100
mov eax, dword [rsp + 0x1c0]
or eax, 0x880020
mov dword [rbx + 0xa0], eax
mov rax, qword [rsp + 0x1c8]
mov qword [rbx + 0x58], rax
mov rax, qword [0x140123d20]
mov qword [rbx + 0x50], rax
lea rax, [0x140010bf0]
mov qword [rbx + 0xb8], rax
mov qword [rbx + 0x48], r13
test rsi, rsi
je 0x1400298b2
or r9, 0xffffffffffffffff
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
test eax, eax
je 0x1400298b2
cmp eax, 0xc
je 0x1400298ec
cmp eax, 0x16
je 0x140029902
cmp eax, 0x22
je 0x140029902
cmp eax, 0x50
jne 0x1400298f7
lea rax, vtable.WTL::CFileDialog.0
mov qword [rbx], rax
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140062a30
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.140010cec
int3
mov ecx, 0x80004005
call fcn.140010cec
int3
mov ecx, 0x80070057
call fcn.140010cec
int3
Function at 0x14002df34
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop dword [rax + rax]
mov ebp, eax
lea rsi, [rdi + 0x10]
xor r14d, r14d
mov edx, eax
cmp rbp, qword [rsi]
ja 0x14002df88
cmp qword [rdi + 0x18], 8
jb 0x14002df7b
mov rax, qword [rdi]
jmp 0x14002df7e
mov rax, rdi
mov qword [rsi], rdx
mov word [rax + rbp*2], r14w
jmp 0x14002df96
sub rdx, qword [rsi]
xor r8d, r8d
mov rcx, rdi
call fcn.140002394
cmp qword [rdi + 0x18], 8
jb 0x14002dfa2
mov rdx, qword [rdi]
jmp 0x14002dfa5
mov rdx, rdi
lea r8d, [rbp + 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
nop dword [rax + rax]
mov edx, eax
cmp rdx, qword [rsi]
ja 0x14002dfd3
cmp qword [rdi + 0x18], 8
jb 0x14002dfc9
mov rdi, qword [rdi]
mov qword [rsi], rdx
mov word [rdi + rdx*2], r14w
jmp 0x14002dfe1
sub rdx, qword [rsi]
xor r8d, r8d
mov rcx, rdi
call fcn.140002394
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14002f8b4
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 1
lea r8, str.https:__docs.microsoft.com_en_us_windows_hardware_drivers_devtest_traceview
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop dword [rax + rax]
add rsp, 0x38
ret
Function at 0x14002fd10
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x248]
sub rsp, 0x320
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rbp + reloc.MFC42u.dll_CStatic::CStatic], rax
mov r14, rcx
lea rdx, [rbp]
mov ebx, 0x105
xor ecx, ecx
mov r8d, ebx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x14002ff1b
cmp eax, ebx
je 0x14002ff1b
lea r15d, [rdi + 2]
mov ecx, r15d
lea r8, [rsp + 0x48]
lea rdx, [rbp]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x14002ff1b
mov ecx, esi
lea rdx, [0x1400725e4]
call fcn.140062ffc
mov rbx, rax
test rax, rax
je 0x14002ff1b
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov r9d, esi
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea rdx, [rbp]
mov ecx, r15d
mov rdi, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
nop dword [rax + rax]
test eax, eax
je 0x14002ff1b
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8, [rsp + 0x50]
lea rdx, [0x140075e2c]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x14002ff1b
cmp dword [rsp + 0x30], 0x34
jb 0x14002ff1b
mov rax, qword [rsp + 0x50]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, [0x140075e30]
movzx r12d, word [rax + 0xa]
movzx r13d, word [rax + 8]
movzx eax, word [rax + 0xe]
mov dword [rsp + 0x38], eax
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x14002ff1b
mov edi, dword [rsp + 0x34]
lea r9, [0x140075e68]
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
shr edi, 2
mov r8d, edi
call fcn.14002fc70
mov rdx, qword [rsp + 0x40]
lea r9, [0x140075e88]
mov r8d, edi
mov rcx, rbx
mov r15, rax
call fcn.14002fc70
mov rsi, rax
test r15, r15
je 0x14002feec
mov eax, dword [rsp + 0x38]
lea rdx, str._ls__u._u._u
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x60]
mov r9d, r12d
mov dword [rsp + 0x20], r13d
mov r8, r15
call fcn.140030118
mov rcx, qword [r14 + 8]
mov edx, 0x46c
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop dword [rax + rax]
mov rdi, rbx
test rsi, rsi
je 0x14002ff1b
mov rcx, qword [r14 + 8]
mov edx, 0x46d
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rbp + reloc.MFC42u.dll_CStatic::CStatic]
xor rcx, rsp
call fcn.140062a30
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14003079c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
jne 0x1400307d0
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x14003082f
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x14003082f
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x140030821
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x140030848
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rbx, [0x140000000]
add r8, rbx
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400308c6
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x1400308c6
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r11d, word [r8 + 6]
add rcx, rax
mov r10d, dword [r9 + rbx + 0xc]
xor edx, edx
test r11d, r11d
je 0x1400308c6
mov r9d, dword [rcx + 0xc]
cmp r10d, r9d
jb 0x1400308bb
mov r8d, dword [rcx + 8]
lea eax, [r9 + r8]
cmp r10d, eax
jb 0x1400308e2
inc edx
add rcx, 0x28
cmp edx, r11d
jb 0x1400308a5
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdi, r9
add rdi, rbx
je 0x1400308c6
cmp dword [0x14012a2d0], 0
jne 0x14003091a
cmp dword [rcx + 0x24], 0
mov dword [0x14012a2d0], 1
jl 0x14003090a
mov ecx, 0x19
int 0x29
mov rdx, r8
mov rcx, rdi
mov rbx, r8
call fcn.14003079c
jmp 0x14003091d
mov rbx, r8
mov r9, rsi
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
test eax, eax
jne 0x1400308cc
lea ecx, [rax + 0x19]
int 0x29
jmp 0x1400308cc