Function at 0x1400f6140
Capabilities:
Enumerate pe sections
Hash data via bcrypt
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xd8
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rbp - 0x21], rax
mov eax, dword [rbp + 0x7f]
xor edi, edi
mov qword [rbp - 0x59], r8
mov rbx, r9
mov qword [rbp - 0x49], rdx
mov r12, r8
mov qword [rbp - 0x51], rcx
mov r13, rdx
mov qword [rbp - 0x31], rdi
mov r15d, edi
mov qword [rbp - 0x41], rdi
mov r14d, edi
mov dword [rbp - 0x25], edi
mov dword [rbp - 0x29], edi
mov dword [rbp - 0x39], edi
sub eax, 1
je 0x1400f61df
sub eax, 1
je 0x1400f61d6
sub eax, 1
je 0x1400f61cd
sub eax, 1
je 0x1400f61c4
cmp eax, 1
je 0x1400f61bb
mov eax, 0xc000000d
jmp 0x1400f6a4c
lea rdx, [0x140513508]
jmp 0x1400f61e6
lea rdx, [0x140513518]
jmp 0x1400f61e6
lea rdx, [0x1404f7378]
jmp 0x1400f61e6
lea rdx, [0x1405134f0]
jmp 0x1400f61e6
lea rdx, [0x1405134f8]
xor r9d, r9d
lea rcx, [rbp - 0x31]
xor r8d, r8d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov esi, eax
test eax, eax
jns 0x1400f6248
call fcn.14002c3f0
lea rcx, str._Error_0x_x_returned_by_BCryptOpenAlgorithmProvider___Hash
mov r9d, 0x236
mov dword [rsp + 0x38], esi
mov r10, qword [rax]
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCryptoUser.cpp
mov qword [rsp + 0x30], rcx
lea rdx, str.GetFileHash32
lea rcx, str.MbCommonSigCRYPTUSR
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 2
call qword [r10 + 0x20]
jmp 0x1400f6a1d
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x25]
mov dword [rsp + 0x28], edi
lea r8, [rbp - 0x39]
mov edi, 4
mov qword [rsp + 0x20], rax
mov r9d, edi
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov esi, eax
test eax, eax
jns 0x1400f628c
call fcn.14002c3f0
lea rcx, str._Error_0x_x_returned_by_BCryptGetProperty_getting_object_length
mov r9d, 0x23d
jmp 0x1400f620e
mov ecx, dword [rbp - 0x39]
call fcn.14016cba4
mov qword [rbp - 0x69], rax
mov r15, rax
test rax, rax
jne 0x1400f62e8
call fcn.14002c3f0
lea rcx, str._memory_allocation_failed
mov r9d, 0x246
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCryptoUser.cpp
lea rcx, str.MbCommonSigCRYPTUSR
mov r10, qword [rax]
lea rdx, str.GetFileHash32
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 2
call qword [r10 + 0x20]
jmp 0x1400f6a1d
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x25]
mov dword [rsp + 0x28], r14d
lea r8, [rbp - 0x29]
mov r9d, edi
mov qword [rsp + 0x20], rax
lea rdx, str.HashDigestLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov esi, eax
test eax, eax
jns 0x1400f632b
call fcn.14002c3f0
lea rcx, str._Error_0x_x_returned_by_BCryptGetProperty_getting_hash_length
mov r9d, 0x24d
jmp 0x1400f620e
mov eax, dword [rbp - 0x29]
cmp dword [r13], eax
jae 0x1400f6390
mov esi, 0xc000000d
call fcn.14002c3f0
mov ecx, dword [rbp - 0x29]
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCryptoUser.cpp
mov dword [rsp + 0x40], ecx
lea rdx, str.GetFileHash32
mov ecx, dword [r13]
mov r9d, 0x255
mov r10, qword [rax]
mov dword [rsp + 0x38], ecx
lea rcx, str._Invalid_hash_size:__u__need__u
mov qword [rsp + 0x30], rcx
lea rcx, str.MbCommonSigCRYPTUSR
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 2
call qword [r10 + 0x20]
jmp 0x1400f6a1d
cmp qword [rbp - 0x51], r14
jne 0x1400f63b7
mov esi, 0xc000000d
call fcn.14002c3f0
lea rcx, str._Invalid_hash_buffer:__p
mov qword [rsp + 0x38], r14
mov r9d, 0x25c
jmp 0x1400f6212
mov r9d, dword [rbp - 0x39]
lea rdx, [rbp - 0x41]
mov rcx, qword [rbp - 0x31]
mov r8, r15
mov dword [r13], eax
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
mov esi, eax
test eax, eax
jns 0x1400f63fc
call fcn.14002c3f0
lea rcx, str._Error_0x_x_returned_by_BCryptCreateHash
mov r9d, 0x265
jmp 0x1400f620e
mov eax, 0x5a4d
movaps xmmword [rsp + 0xc0], xmm6
lea r15, str.MbCommonSigCRYPTUSR
cmp word [r12], ax
je 0x1400f6453
call fcn.14002c3f0
lea rcx, str.Not_A_Valid_Dos_Stub
mov r9d, 0x26e
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCryptoUser.cpp
mov qword [rsp + 0x28], r15
lea rdx, str.GetFileHash32
mov r10, qword [rax]
mov rcx, rax
mov dword [rsp + 0x20], 5
call qword [r10 + 0x20]
movsxd rdi, dword [r12 + 0x3c]
add rdi, r12
mov qword [rbp - 0x61], rdi
cmp dword [rdi], 0x4550
movq xmm6, rdi
punpcklqdq xmm6, xmm6
je 0x1400f64b1
call fcn.14002c3f0
lea rcx, str.Not_A_Valid_PE_Executable
mov r9d, 0x275
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 5
mov r10, qword [rax]
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCryptoUser.cpp
lea rdx, str.GetFileHash32
mov rcx, rax
call qword [r10 + 0x20]
jmp 0x1400f6a11
mov rcx, qword [rbp - 0x41]
mov r8d, edi
sub r8d, r12d
xor r9d, r9d
add r8d, 0x58
mov rdx, r12
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov esi, eax
test eax, eax
jns 0x1400f6516
call fcn.14002c3f0
mov r9d, 0x287
mov r10, qword [rax]
lea rcx, str._Error_0x_x_returned_by_BCryptHashData
mov dword [rsp + 0x38], esi
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCryptoUser.cpp
mov qword [rsp + 0x30], rcx
lea rdx, str.GetFileHash32
mov qword [rsp + 0x28], r15
mov rcx, rax
mov dword [rsp + 0x20], 2
call qword [r10 + 0x20]
jmp 0x1400f6a11
mov rcx, qword [rbp - 0x41]
lea rdx, [rdi + 0x5c]
xor r9d, r9d
lea r8d, [r9 + 0x3c]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov esi, eax
test eax, eax
jns 0x1400f653e
call fcn.14002c3f0
mov r9d, 0x294
jmp 0x1400f64dc
movzx edx, word [rdi + 6]
lea r10, [rdi + 0xa0]
mov r13d, dword [rdi + 0x54]
test rdx, rdx
je 0x1400f657d
movzx ecx, word [rdi + 0x14]
add rcx, 0x28
add rcx, rdi
nop dword [rax]
mov eax, dword [rcx + 4]
cmp eax, r13d
jae 0x1400f6573
cmp dword [rcx], r14d
jbe 0x1400f6573
test eax, eax
cmovne r13d, eax
add rcx, 0x28
sub rdx, 1
jne 0x1400f6560
mov rcx, qword [rbp - 0x41]
mov r8d, r12d
sub r8d, r10d
xor r9d, r9d
add r8d, r13d
mov rdx, r10
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov esi, eax
test eax, eax
jns 0x1400f65ac
call fcn.14002c3f0
mov r9d, 0x2ae
jmp 0x1400f64dc
movzx eax, word [rdi + 6]
mov dword [rbp - 0x71], r13d
test ax, ax
je 0x1400f6914
mov r12d, eax
xor edi, edi
mov rax, qword [rbp - 0x61]
movzx ecx, word [rax + 0x14]
mov eax, r12d
mul ecx
mov ecx, eax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.14016cba4
mov r14, rax
test rax, rax
jne 0x1400f6612
call fcn.14002c3f0
lea rcx, str._Error_getting_memory
mov r9d, 0x2c3
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 2
jmp 0x1400f6494
mov r9, qword [rbp - 0x61]
xor esi, esi
mov r11d, esi
movzx r10d, word [r9 + 6]
test r10d, r10d
je 0x1400f674f
cmp r10d, 8
jb 0x1400f674f
cmp dword [0x14057b948], 6
jl 0x1400f674f
movsx eax, word [r9 + 0x14]
lea r8, [r14 + 0x20]
movdqa xmm3, xmmword [0x140516830]
lea ecx, [rsi + 4]
movdqa xmm5, xmmword [0x140516820]
mov edx, r10d
movaps xmmword [rsp + 0xb0], xmm7
and edx, 0xfffffff8
movdqa xmm7, xmmword [0x140516840]
movd xmm0, eax
pshuflw xmm0, xmm0, 0
pmovzxwq xmm4, xmm0
movq xmm2, xmm7
movd xmm0, r11d
pshufd xmm0, xmm0, 0
lea eax, [rcx - 2]
paddd xmm0, xmm2
lea r8, [r8 + 0x40]
pmovsxdq xmm0, xmm0
vpmullq xmm1, xmm0, xmm3
paddq xmm1, xmm4
movd xmm0, eax
paddq xmm1, xmm6
pshufd xmm0, xmm0, 0
paddq xmm1, xmm5
lea eax, [rcx + 2]
movdqu xmmword [r8 - 0x60], xmm1
add r11d, 8
paddd xmm0, xmm2
pmovsxdq xmm0, xmm0
vpmullq xmm1, xmm0, xmm3
paddq xmm1, xmm4
movd xmm0, ecx
paddq xmm1, xmm6
pshufd xmm0, xmm0, 0
paddq xmm1, xmm5
paddd xmm0, xmm2
movdqu xmmword [r8 - 0x50], xmm1
add ecx, 8
pmovsxdq xmm0, xmm0
vpmullq xmm1, xmm0, xmm3
movd xmm0, eax
paddq xmm1, xmm4
pshufd xmm0, xmm0, 0
paddq xmm1, xmm6
paddq xmm1, xmm5
paddd xmm0, xmm2
movdqu xmmword [r8 - 0x40], xmm1
pmovsxdq xmm0, xmm0
vpmullq xmm1, xmm0, xmm3
paddq xmm1, xmm4
paddq xmm1, xmm6
paddq xmm1, xmm5
movdqu xmmword [r8 - 0x30], xmm1
cmp r11d, edx
jl 0x1400f6680
movaps xmm7, xmmword [rsp + 0xb0]
cmp r11d, r10d
jge 0x1400f6791
movzx edx, word [r9 + 0x14]
add rdx, 0x18
movsxd rax, r11d
add rdx, r9
sub r10d, r11d
lea rcx, [rax + rax*4]
lea r8, [r14 + rax*8]
mov eax, r10d
lea rdx, [rdx + rcx*8]
nop word [rax + rax]
mov qword [r8], rdx
lea r8, [r8 + 8]
add rdx, 0x28
sub rax, 1
jne 0x1400f6780
test r12d, r12d
je 0x1400f690c
mov r11d, r13d
nop dword [rax]
movzx r9d, word [r9 + 6]
mov rdx, rsi
test r9, r9
je 0x1400f67e5
nop dword [rax]
mov rcx, qword [r14 + rdx*8]
test rcx, rcx
je 0x1400f67dd
cmp dword [rcx + 0x10], 0
je 0x1400f67d6
test rdi, rdi
jne 0x1400f67c9
mov rdi, rcx
jmp 0x1400f67dd
mov eax, dword [rcx + 0x14]
cmp dword [rdi + 0x14], eax
jbe 0x1400f67dd
mov rdi, rcx
jmp 0x1400f67dd
mov qword [r14 + rdx*8], rsi
dec r12d
inc rdx
cmp rdx, r9
jl 0x1400f67b0
test rdi, rdi
je 0x1400f68ab
mov r8d, dword [rdi + 0x14]
mov eax, r11d
sub eax, r13d
cmp r8d, eax
jb 0x1400f6867
mov r10d, dword [rdi + 0x10]
mov r15d, r10d
mov rdx, rsi
test r9, r9
je 0x1400f6840
nop dword [rax]
mov rax, qword [r14 + rdx*8]
test rax, rax
je 0x1400f6838
cmp dword [rax + 0x10], 0
jbe 0x1400f6838
cmp rax, rdi
je 0x1400f6838
mov eax, dword [rax + 0x14]
lea ecx, [r10 + r8]
cmp ecx, eax
jbe 0x1400f6838
sub eax, r10d
sub eax, r8d
add r15d, eax
inc rdx
cmp rdx, r9
jl 0x1400f6810
mov rcx, qword [rbp - 0x41]
mov rdx, r8
add rdx, qword [rbp - 0x59]
xor r9d, r9d
mov r8d, r15d
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov esi, eax
test eax, eax
js 0x1400f68b9
add dword [rbp - 0x71], r15d
mov r11d, dword [rbp - 0x71]
xor esi, esi
mov rax, qword [rbp - 0x61]
mov ecx, esi
mov rdx, rsi
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x1400f68a5
nop word [rax + rax]
mov r8, qword [r14 + rdx*8]
lea r9, [r14 + rdx*8]
test r8, r8
je 0x1400f6896
mov eax, dword [rdi + 0x14]
cmp dword [r8 + 0x14], eax
je 0x1400f68a2
inc ecx
inc rdx
cmp ecx, r10d
jl 0x1400f6880
jmp 0x1400f68a5
mov qword [r9], rsi
mov rdi, rsi
dec r12d
test r12d, r12d
jle 0x1400f6905
mov r9, qword [rbp - 0x61]
jmp 0x1400f67a0
call fcn.14002c3f0
mov dword [rsp + 0x38], esi
lea rcx, str._Error_0x_x_returned_by_BCryptHashData
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCryptoUser.cpp
lea rcx, str.MbCommonSigCRYPTUSR
mov r9d, 0x301
mov r10, qword [rax]
lea rdx, str.GetFileHash32
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 2
call qword [r10 + 0x20]
jmp 0x1400f6a09
lea r15, str.MbCommonSigCRYPTUSR
mov r12, qword [rbp - 0x59]
mov rdi, qword [rbp - 0x61]
mov eax, dword [rbp - 0x71]
cmp ebx, eax
jbe 0x1400f69a6
mov r8d, ebx
sub r8d, dword [rdi + 0x9c]
sub r8d, eax
cmp r8d, ebx
ja 0x1400f696a
mov ecx, ebx
mov edx, eax
sub rcx, rax
mov eax, r8d
cmp rax, rcx
ja 0x1400f696a
mov rcx, qword [rbp - 0x41]
add rdx, r12
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov esi, eax
test eax, eax
jns 0x1400f69a6
call fcn.14002c3f0
lea rcx, str._Error_0x_x_returned_by_BCryptHashData
mov r9d, 0x325
jmp 0x1400f69d6
call fcn.14002c3f0
lea rcx, str.Error_calculating_rest_of_data__
mov r9d, 0x31e
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCryptoUser.cpp
mov qword [rsp + 0x28], r15
lea rdx, str.GetFileHash32
mov r10, qword [rax]
mov rcx, rax
mov dword [rsp + 0x20], 2
call qword [r10 + 0x20]
mov r8, qword [rbp - 0x49]
xor r9d, r9d
mov rdx, qword [rbp - 0x51]
mov rcx, qword [rbp - 0x41]
mov r8d, dword [r8]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov esi, eax
test eax, eax
jns 0x1400f6a04
call fcn.14002c3f0
lea rcx, str._Error_0x_x_returned_by_BCryptFinishHash
mov r9d, 0x330
mov r10, qword [rax]
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCryptoUser.cpp
mov dword [rsp + 0x38], esi
lea rdx, str.GetFileHash32
mov qword [rsp + 0x30], rcx
mov rcx, rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 2
call qword [r10 + 0x20]
test r14, r14
je 0x1400f6a11
mov rcx, r14
call fcn.14016046c
mov r15, qword [rbp - 0x69]
movaps xmm6, xmmword [rsp + 0xc0]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400f6a2e
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1400f6a3d
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
test r15, r15
je 0x1400f6a4a
mov rcx, r15
call fcn.14016046c
mov eax, esi
mov rcx, qword [rbp - 0x21]
xor rcx, rsp
call fcn.14014f4f0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret