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

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14035b190]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140042228
cmp byte [rcx + 0x72], 0
je 0x140042228
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x14004211e
xor al, al
jmp 0x14004222a
mov edx, 0xf
mov qword [rbp - 0x18], rdx
mov byte [rbp - 0x30], 0
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov rdx, qword [rbp - 0x18]
nop dword [rax]
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x20]
add r9, rcx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004218f
sub eax, 1
jne 0x1400421fd
jmp 0x140042193
mov byte [rdi + 0x72], 0
lea rax, [rbp - 0x30]
mov r9, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, r9
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x1400421da
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, qword [rbp - 0x18]
cmp rbx, rax
jne 0x140042206
cmp byte [rdi + 0x72], 0
je 0x14004220a
test rbx, rbx
jne 0x140042150
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140041f60
jmp 0x140042148
sub eax, 2
mov rdx, qword [rbp - 0x18]
je 0x14004220a
xor bl, bl
jmp 0x14004220c
mov bl, 1
cmp rdx, 0x10
jb 0x140042223
lea r8, [rdx + 1]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140042b90
movzx eax, bl
jmp 0x14004222a
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14017e520
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140042560
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14035b190]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1400426c8
cmp byte [rcx + 0x71], 0
je 0x1400426c8
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1400425ba
xor al, al
jmp 0x1400426ca
mov edx, 0xf
mov qword [rbp - 0x18], rdx
mov byte [rbp - 0x30], 0
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov rdx, qword [rbp - 0x18]
nop dword [rax + rax]
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x20]
add r9, rcx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004262f
sub eax, 1
jne 0x14004269d
jmp 0x140042633
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov r9, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, r9
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14004267a
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, qword [rbp - 0x18]
cmp rbx, rax
jne 0x1400426a6
cmp byte [rdi + 0x71], 0
je 0x1400426aa
test rbx, rbx
jne 0x1400425f0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140041f60
jmp 0x1400425e4
sub eax, 2
mov rdx, qword [rbp - 0x18]
je 0x1400426aa
xor bl, bl
jmp 0x1400426ac
mov bl, 1
cmp rdx, 0x10
jb 0x1400426c3
lea r8, [rdx + 1]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140042b90
movzx eax, bl
jmp 0x1400426ca
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14017e520
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140049ad0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0xa30
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x14035b190]
xor rax, rsp
mov qword [rsp + 0xa20], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x50], r8d
mov r8d, 1
mov qword [r11 - 0x38], r8
nop dword [rax]
mov eax, dword [rsp + r8*4 + 0x4c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, dword [rsp + 0xa10]
mov dword [rsp + r8*4 + 0x50], eax
mov r8, qword [rsp + 0xa10]
inc r8
mov qword [rsp + 0xa10], r8
cmp r8, 0x270
jb 0x140049b20
mov edx, dword [rsp + 0x680]
xor edx, dword [rsp + 0xa0c]
jns 0x140049b77
xor edx, 0x1908b0df
add edx, edx
or edx, 1
jmp 0x140049b79
add edx, edx
mov ecx, dword [rsp + 0x50]
mov eax, ecx
xor eax, edx
btr eax, 0x1f
xor ecx, eax
mov dword [rsp + 0x50], ecx
mov rax, rbx
nop
cmp dword [rsp + rax*4 + 0x50], ebx
jne 0x140049ba9
inc rax
cmp rax, 0x270
jb 0x140049b90
mov dword [rsp + 0x50], 0x80000000
mov rdi, qword [r14 + 8]
sub rdi, qword [r14]
sar rdi, 1
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov dword [rsp + 0x20], 1
mov rax, qword [r14 + 8]
sub rax, qword [r14]
test rax, 0xfffffffffffffffe
je 0x140049c5a
nop dword [rax]
lea r8d, [rdi - 1]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14004ced0
movsxd r9, eax
cmp r9, rbx
jae 0x140049c18
nop dword [rax + rax]
lea r8d, [rdi - 1]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14004ced0
movsxd r9, eax
cmp r9, rbx
jb 0x140049c00
mov rax, qword [r14]
lea r8, [rax + r9*2]
lea rcx, [rax + rbx*2]
movzx edx, word [rcx]
movzx eax, word [r8]
mov word [rcx], ax
mov word [r8], dx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r9
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14004a5e0
inc rbx
mov rcx, qword [r14 + 8]
sub rcx, qword [r14]
sar rcx, 1
cmp rbx, rcx
jne 0x140049be0
mov rax, rsi
mov rcx, qword [rsp + 0xa20]
xor rcx, rsp
call fcn.14017e520
mov rbx, qword [rsp + 0xa60]
add rsp, 0xa30
pop r14
pop rdi
pop rsi
ret
Function at 0x14004ced0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
sub ebx, edx
mov rdi, rcx
test ebx, ebx
jne 0x14004cef0
mov eax, edx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x50], rbp
or ebp, 0xffffffff
cmp ebx, ebp
jne 0x14004cf1a
call fcn.14004d730
test esi, esi
jns 0x14004d07e
sub ebp, esi
mov rbp, qword [rsp + 0x50]
add eax, esi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
jbe 0x14004d003
mov qword [rsp + 0x58], r12
lea eax, [rbx + 1]
mov qword [rsp + 0x60], r13
xor edx, edx
xor r13d, r13d
mov qword [rsp + 0x28], r14
div r13d
mov qword [rsp + 0x20], r15
mov r12d, r13d
mov r15d, eax
mov r14d, 1
nop dword [rax + rax]
cmp r15d, r14d
jae 0x14004cf91
mov r8d, ebx
mov rcx, rdi
call fcn.14004d790
cmp eax, ebp
ja 0x14004cf50
cmp eax, ebx
ja 0x14004cf50
test esi, esi
jns 0x14004cf6e
sub ebp, esi
add eax, esi
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp qword [rdi + 0x9c0], 0x270
jne 0x14004cfa6
mov rcx, rdi
call fcn.14004d930
mov rax, qword [rdi + 0x9c0]
mov ecx, dword [rdi + rax*4]
inc rax
mov qword [rdi + 0x9c0], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
imul eax, r14d
add r12d, eax
mov eax, ebx
sub eax, r14d
neg r14d
inc eax
cmp r14d, eax
je 0x14004cffb
mov r14d, r13d
jmp 0x14004cf91
mov eax, r12d
jmp 0x14004cf70
xor edx, edx
lea ecx, [rbx + 1]
mov eax, ebp
div ecx
mov r11d, eax
cmp edx, ebx
jne 0x14004d020
inc r11d
nop word [rax + rax]
cmp qword [rdi + 0x9c0], 0x270
jne 0x14004d035
mov rcx, rdi
call fcn.14004d930
mov rax, qword [rdi + 0x9c0]
xor edx, edx
mov ecx, dword [rdi + rax*4]
inc rax
mov qword [rdi + 0x9c0], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
div r11d
cmp eax, ebx
ja 0x14004d020
test esi, esi
jns 0x14004d07e
sub ebp, esi
add eax, esi
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x14004d730
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x9c0], 0x270
mov r11, rcx
jne 0x14004d749
call fcn.14004d930
mov rax, qword [r11 + 0x9c0]
mov edx, dword [r11 + rax*4]
inc rax
mov qword [r11 + 0x9c0], rax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x28
ret
Function at 0x14004d790
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x10], edx
push rsi
push rdi
sub rsp, 0x28
mov esi, r8d
mov rdi, rcx
test r8d, r8d
jne 0x14004d7b3
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
cmp r8d, 0xffffffff
jne 0x14004d7c5
call fcn.14004d730
add rsp, 0x28
pop rdi
pop rsi
ret
jbe 0x14004d8ae
lea eax, [r8 + 1]
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
mov dword [rsp + 0x48], r8d
div r8d
mov ebp, 1
mov dword [rsp + 0x58], eax
mov ecx, eax
movzx ebx, byte [rsp + 0x58]
cmp ecx, ebp
jae 0x14004d829
movzx r9d, bl
mov r8d, esi
xor edx, edx
mov rcx, rdi
call fcn.14004d790
mov ecx, dword [rsp + 0x58]
cmp eax, 0xffffffff
ja 0x14004d7f6
cmp eax, esi
ja 0x14004d7f6
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r11d, dword [rsp + 0x48]
xor r8d, r8d
cmp qword [rdi + 0x9c0], 0x270
jne 0x14004d849
mov rcx, rdi
call fcn.14004d930
xor r8d, r8d
mov rax, qword [rdi + 0x9c0]
mov ecx, dword [rdi + rax*4]
inc rax
mov qword [rdi + 0x9c0], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
imul eax, ebp
add r11d, eax
mov eax, esi
sub eax, ebp
neg ebp
inc eax
cmp ebp, eax
je 0x14004d89a
mov ebp, r8d
jmp 0x14004d831
mov rbx, qword [rsp + 0x40]
mov eax, r11d
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
xor edx, edx
lea ecx, [r8 + 1]
or eax, 0xffffffff
div ecx
mov r11d, eax
cmp edx, r8d
jne 0x14004d8d0
inc r11d
nop dword [rax]
nop dword [rax + rax]
cmp qword [rdi + 0x9c0], 0x270
jne 0x14004d8e5
mov rcx, rdi
call fcn.14004d930
mov rax, qword [rdi + 0x9c0]
xor edx, edx
mov ecx, dword [rdi + rax*4]
inc rax
mov qword [rdi + 0x9c0], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
div r11d
cmp eax, esi
ja 0x14004d8d0
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14004d930
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
xor edx, edx
mov r10, rcx
cmp dword [0x14035b1a8], 2
jl 0x14004d9de
movdqa xmm3, xmmword [0x14029c3d0]
mov eax, 1
movdqa xmm4, xmmword [0x14029c410]
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm6, xmmword [0x14029c420]
movd xmm5, eax
lea rax, [rcx + 4]
lea ecx, [rdx + 0x37]
movaps xmmword [rsp], xmm7
movdqa xmm7, xmmword [0x14029c300]
mov edx, 0xdc
nop dword [rax]
nop dword [rax + rax]
movdqu xmm1, xmmword [rax]
movdqu xmm2, xmmword [rax - 4]
lea rax, [rax + 0x10]
movdqa xmm0, xmm1
pand xmm1, xmm7
pand xmm2, xmm4
pand xmm0, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [rax + 0x620]
psrld xmm2, xmm5
pmulld xmm1, xmm6
pxor xmm2, xmm1
pxor xmm2, xmm0
movdqu xmmword [rax - 0x14], xmm2
sub rcx, 1
jne 0x14004d990
movaps xmm7, xmmword [rsp]
movaps xmm6, xmmword [rsp + 0x10]
lea rax, [r10 + 4]
mov r8d, 0xde
lea rax, [rax + rdx*4]
sub r8, rdx
nop
mov ecx, dword [rax]
lea rax, [rax + 4]
mov edx, ecx
and ecx, 1
xor edx, dword [rax - 8]
and edx, 0x7ffffffe
imul ecx, ecx, 0x9908b0df
xor edx, dword [rax - 8]
shr edx, 1
xor edx, ecx
xor edx, dword [rax + 0x62c]
mov dword [rax - 8], edx
sub r8, 1
jne 0x14004d9f0
mov r8d, dword [r10 + 0x37c]
mov eax, r8d
mov r9d, dword [r10 + 0x380]
and eax, 1
mov edx, dword [r10 + 0x378]
xor edx, r8d
imul ecx, eax, 0x9908b0df
and edx, 0x7ffffffe
mov eax, r9d
xor edx, dword [r10 + 0x378]
and eax, 1
shr edx, 1
xor edx, ecx
imul ecx, eax, 0x9908b0df
xor edx, dword [r10 + 0x9ac]
mov dword [r10 + 0x378], edx
mov edx, r9d
xor edx, r8d
and edx, 0x7ffffffe
xor edx, r8d
mov r8d, dword [r10 + 0x384]
shr edx, 1
mov eax, r8d
xor edx, ecx
and eax, 1
xor edx, dword [r10 + 0x9b0]
mov dword [r10 + 0x37c], edx
mov edx, r8d
xor edx, r9d
imul ecx, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, r9d
mov r9d, dword [r10 + 0x388]
shr edx, 1
mov eax, r9d
and eax, 1
xor edx, ecx
imul ecx, eax, 0x9908b0df
xor edx, dword [r10 + 0x9b4]
mov eax, dword [r10 + 0x38c]
mov dword [r10 + 0x380], edx
mov edx, r9d
xor edx, r8d
and edx, 0x7ffffffe
xor edx, r8d
mov r8d, 0x18c
shr edx, 1
xor edx, ecx
mov ecx, eax
xor edx, dword [r10 + 0x9b8]
xor ecx, r9d
and ecx, 0x7ffffffe
mov dword [r10 + 0x384], edx
xor ecx, r9d
lea rdx, [r10 + 0x390]
and eax, 1
shr ecx, 1
imul eax, eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [r10 + 0x9bc]
mov dword [r10 + 0x388], ecx
nop word [rax + rax]
mov eax, dword [rdx]
lea rdx, [rdx + 4]
mov ecx, eax
and eax, 1
xor ecx, dword [rdx - 8]
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [rdx - 8]
shr ecx, 1
xor ecx, eax
xor ecx, dword [rdx - 0x394]
mov dword [rdx - 8], ecx
sub r8, 1
jne 0x14004db40
mov ecx, dword [r10 + 0x9bc]
mov eax, dword [r10]
xor ecx, eax
and ecx, 0x7ffffffe
mov qword [r10 + 0x9c0], r8
xor ecx, dword [r10 + 0x9bc]
and eax, 1
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [r10 + 0x630]
mov dword [r10 + 0x9bc], ecx
add rsp, 0x28
ret
Function at 0x14005d430
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14035b190]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
mov qword [rbp - 9], rcx
xor edi, edi
mov dword [rbp - 0x19], edi
lea rcx, [rbp + 0x2f]
call fcn.14005d330
nop
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x14005d48f
mov rax, qword [rbx]
jmp 0x14005d492
mov rax, rbx
mov word [rax], di
mov r8d, 7
lea rdx, str.0.0.0.0
mov rcx, rbx
call fcn.1400367c0
mov dword [rbp - 0x19], 1
mov dword [rbp + 0x2b], edi
mov qword [rbp + 0x1f], rdi
mov dword [rbp + 0x27], edi
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
lea rdx, [rbp + 0x27]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14005d58e
mov ecx, esi
call fcn.14017ef5c
mov rdi, rax
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
mov r9, rax
mov r8d, esi
mov edx, dword [rbp + 0x27]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14005d585
lea r9, [rbp + 0x2b]
lea r8, [rbp + 0x1f]
lea rdx, [0x14028ef20]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14005d585
cmp dword [rbp + 0x2b], 0
je 0x14005d585
mov rax, qword [rbp + 0x1f]
cmp dword [rax], 0xfeef04bd
jne 0x14005d585
movzx r8d, word [rax + 0xa]
movzx r9d, word [rax + 8]
movzx ecx, word [rax + 0xe]
movzx eax, word [rax + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rbp - 1]
call fcn.14011d390
mov rdx, rax
mov rcx, rbx
call fcn.14003ff60
mov r8, qword [rbp + 0x17]
cmp r8, 8
jb 0x14005d585
inc r8
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 1]
call fcn.140037050
mov rcx, rdi
call fcn.14017ef54
nop
mov r8, qword [rbp + 0x47]
cmp r8, 8
jb 0x14005d5a8
inc r8
mov rdx, qword [rbp + 0x2f]
lea rcx, [rbp + 0x2f]
call fcn.140037050
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14017e520
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14005d5e0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14035b190]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov dword [rsp + 0x24], 0x101
xor ebx, ebx
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x30], bx
je 0x14005d64a
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14005d640
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400367c0
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14017e520
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1400e7780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400e77b3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400e77fa
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400e77f5
nop
cmp rbx, rcx
jae 0x1400e77fa
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400e77e0
cmp rbx, rcx
jb 0x1400e77fe
xor eax, eax
jmp 0x1400e780a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e7b80
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov rbp, r9
mov rax, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
mov rdx, r8
mov rcx, rax
call fcn.1400e78d0
mov rsi, rax
test rax, rax
je 0x1400e7cf1
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400e7ce8
call fcn.14004fa70
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400e7c19
mov ecx, 0x80004005
call fcn.1400e76f0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov edx, dword [rsp + 0x80]
shr edx, 1
jns 0x1400e7c41
mov ecx, 0x80070057
call fcn.1400e76f0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400e7c61
lea rcx, [rsp + 0x38]
call fcn.1400e9780
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x1400e7cdd
cmp eax, dword [rbx - 0xc]
jg 0x1400e7cdd
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbx - 0x18]
call fcn.1400e96f0
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1400e7d00
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + 8]
jmp 0x1400e7d00
mov ecx, 0x80070057
call fcn.1400e76f0
nop
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x140284554]
mov rcx, rdi
call fcn.1400e94e0
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x1400e7d20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rcx, 0xffffffff80000001
mov edi, r9d
mov rsi, r8
call fcn.1400e78d0
mov rbx, rax
test rax, rax
je 0x1400e7da5
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
test eax, eax
jne 0x1400e7d9f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400e7dc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rcx, 0xffffffff80000001
mov rdi, r8
call fcn.1400e78d0
mov rbx, rax
test rax, rax
je 0x1400e7e3e
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
test eax, eax
jne 0x1400e7e38
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret