Function at 0x40bea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cebd
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x43bc98
mov dword [ebp - 0x14], 0xf
xor esi, esi
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], esi
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x18], esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bef0
sub ecx, edx
push ecx
push 0x43bc98
lea ecx, [ebp - 0x28]
call fcn.004022a0
lea edx, [ebp - 0x50]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401a60
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40bf56
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c508
push edx
push ecx
call fcn.0040f6ee
add esp, 8
test edi, edi
je 0x40bfcd
cmp dword [0x43ba80], 0
je 0x40bfc5
lea ecx, [ebp - 0x28]
call fcn.004011a0
cmp dword [eax + 0x14], 0x10
jb 0x40bf73
mov eax, dword [eax]
push 0x2e2
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push eax
push str._ERROR___s__s:_d_tfilesize_failed_n
push dword [0x43ba80]
call fcn.00402120
add esp, 0x14
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40bfc5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bfbb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c50d
push edx
push ecx
call fcn.0040f6ee
add esp, 8
or esi, 0xffffffff
jmp 0x40c187
mov edi, dword [ebp - 0x50]
push edi
call fcn.00414d63
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x40c024
cmp dword [0x43ba80], eax
je 0x40bfc5
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40bffa
mov esi, dword [esi]
call fcn.00414e02
push dword [eax]
push 0x2e9
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push esi
push str._ERROR___s__s:_d_tmalloc_failed__errno_d_n
push dword [0x43ba80]
call fcn.00402120
add esp, 0x18
jmp 0x40bf91
push 0x434e84
push 0x43bc98
call fcn.004192d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c0b7
cmp dword [0x43ba80], eax
je 0x40c0af
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40c056
mov esi, dword [esi]
call fcn.00414e02
push dword [eax]
push 0x2f2
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push esi
push str._ERROR___s__s:_d_tfopen_failed__errno_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 0x10
jb 0x40c0af
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c0a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c50d
push edx
push ecx
call fcn.0040f6ee
add esp, 8
or esi, 0xffffffff
jmp 0x40c17c
push ebx
push edi
push 1
push dword [ebp - 0x48]
call fcn.004194cd
mov ecx, eax
add esp, 0x10
cdq
mov dword [ebp - 0x54], ecx
cmp eax, edi
jne 0x40c4b8
cmp edx, dword [ebp - 0x4c]
jne 0x40c4b8
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x44]
push 0
push 0
push eax
push 0
push 0
push ecx
push dword [ebp - 0x48]
call edi
test eax, eax
jne 0x40c1a5
cmp dword [0x43ba80], eax
je 0x40c170
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40c117
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x301
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push esi
push str._ERROR___s__s:_d_tCryptStringToBinaryA_query_buf_size_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
add esp, 0x18
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40c170
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c166
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c50d
push edx
push ecx
call fcn.0040f6ee
add esp, 8
push ebx
or esi, 0xffffffff
call fcn.0041967f
add esp, 4
push dword [ebp - 0x48]
call fcn.00414d6e
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f469
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x44]
call fcn.00414d63
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x40c22d
cmp dword [0x43ba80], eax
je 0x40c170
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40c1d1
mov esi, dword [esi]
call fcn.00414e02
push dword [eax]
push 0x308
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push esi
push str._ERROR___s__s:_d_tmalloc_failed__errno_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 0x10
jb 0x40c170
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c166
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c166
jmp 0x40c50d
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
push eax
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x48]
call edi
test eax, eax
jne 0x40c2bf
cmp dword [0x43ba80], eax
je 0x40c2b7
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40c25e
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x310
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push esi
push str._ERROR___s__s:_d_tCryptStringToBinaryA_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 0x10
jb 0x40c2b7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c50d
push edx
push ecx
call fcn.0040f6ee
add esp, 8
or esi, 0xffffffff
jmp 0x40c4a2
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov edi, eax
test edi, edi
jne 0x40c301
cmp dword [0x43ba80], eax
je 0x40c2b7
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40c2f0
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x31d
jmp 0x40c26a
push 0
push 0
push str.2.5.4.3
push 1
push 3
push edi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
cmp eax, 1
jbe 0x40c431
cmp eax, 0x100
ja 0x40c431
push 0
push 0
push str.2.5.4.3
push 1
push 3
push edi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
cmp eax, 1
jbe 0x40c431
push eax
push 0x43ba90
push str.2.5.4.3
push 1
push 3
push edi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
cmp eax, 1
jbe 0x40c431
push 0
push 0
push str.2.5.4.11
push 1
push 3
push edi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
cmp eax, 1
jbe 0x40c3bd
cmp eax, 0x100
ja 0x40c3bd
push 0
push 0
push str.2.5.4.11
push 1
push 3
push edi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
cmp eax, 1
jbe 0x40c3bd
push eax
push 0x43bb90
push str.2.5.4.11
push 1
push 3
push edi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
cmp eax, 1
ja 0x40c49b
cmp dword [0x43ba80], 0
je 0x40c428
lea ecx, [ebp - 0x40]
call fcn.004011a0
cmp dword [eax + 0x14], 0x10
jb 0x40c3d6
mov eax, dword [eax]
push 0x32a
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push eax
push str._ERROR___s__s:_d_tGetIssuerAttr_OU_failed_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x2c]
add esp, 0x14
cmp edx, 0x10
jb 0x40c428
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c41e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c50d
push edx
push ecx
call fcn.0040f6ee
add esp, 8
mov byte [0x43bb90], 0
jmp 0x40c49b
cmp dword [0x43ba80], 0
je 0x40c498
lea ecx, [ebp - 0x28]
call fcn.004011a0
cmp dword [eax + 0x14], 0x10
jb 0x40c44a
mov eax, dword [eax]
push 0x324
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push eax
push str._ERROR___s__s:_d_tGetIssuerAttr_CN_failed_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x14]
add esp, 0x14
cmp edx, 0x10
jb 0x40c498
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c48e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c50d
push edx
push ecx
call fcn.0040f6ee
add esp, 8
or esi, 0xffffffff
push edi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push ebx
call fcn.0041967f
add esp, 4
push dword [ebp - 0x4c]
call fcn.00414d6e
jmp 0x40c179
cmp dword [0x43ba80], 0
je 0x40c170
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40c4d7
mov esi, dword [esi]
call fcn.00414e02
push dword [eax]
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
push edi
push 0x2f9
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push esi
push str._ERROR___s__s:_d_tfread_failed__expect_size_d__readsize_d__errno_d_n
push dword [0x43ba80]
call fcn.00402120
add esp, 0x24
jmp 0x40c13c
call fcn.00415003
call fcn.00415003
int3