Function at 0x40df50
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 esi, ecx
test esi, esi
jne 0x40df88
xor eax, eax
jmp 0x40e246
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movlpd qword [ebp - 0x58], xmm0
lea edx, [ecx + 1]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dfb0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004022a0
lea edx, [ebp - 0x58]
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 0x40e012
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e008
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e453
push edx
push ecx
call fcn.0040f6ee
add esp, 8
test edi, edi
je 0x40e08b
cmp dword [0x43ba80], 0
je 0x40e243
lea ecx, [ebp - 0x28]
call fcn.004011a0
cmp dword [eax + 0x14], 0x10
jb 0x40e033
mov eax, dword [eax]
push 0x36
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_system_ca.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 0x40e243
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e07c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e458
push edx
push ecx
call fcn.0040f6ee
add esp, 8
jmp 0x40e243
mov ebx, dword [ebp - 0x58]
push ebx
call fcn.00414d63
mov edi, eax
add esp, 4
mov dword [ebp - 0x4c], edi
test edi, edi
jne 0x40e0e5
cmp dword [0x43ba80], eax
je 0x40e243
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40e0be
mov esi, dword [esi]
call fcn.00414e02
push dword [eax]
push 0x3b
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_system_ca.cpp
push esi
push str._ERROR___s__s:_d_tmalloc_failed__errno_d_n
push dword [0x43ba80]
call fcn.00402120
add esp, 0x18
jmp 0x40e04e
push 0x434e84
push esi
call fcn.004192d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e176
cmp dword [0x43ba80], eax
je 0x40e238
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40e117
mov esi, dword [esi]
call fcn.00414e02
push dword [eax]
push 0x42
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_system_ca.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 0x40e238
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e167
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e458
push edx
push ecx
call fcn.0040f6ee
add esp, 8
jmp 0x40e238
push esi
push ebx
push 1
push edi
call fcn.004194cd
mov ecx, eax
add esp, 0x10
cdq
mov dword [ebp - 0x48], ecx
cmp eax, ebx
jne 0x40e406
cmp edx, dword [ebp - 0x54]
jne 0x40e406
push 0
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0
push 0
push ecx
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call edi
test eax, eax
jne 0x40e262
cmp dword [0x43ba80], eax
je 0x40e22f
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x40e1d9
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4e
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_system_ca.cpp
push edi
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 0x40e22f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e225
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e458
push edx
push ecx
call fcn.0040f6ee
add esp, 8
push esi
call fcn.0041967f
add esp, 4
push dword [ebp - 0x4c]
call fcn.00414d6e
add esp, 4
mov eax, dword [ebp - 0x50]
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
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40e2e6
cmp dword [0x43ba80], eax
je 0x40e22f
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x40e28d
mov edi, dword [edi]
call fcn.00414e02
push dword [eax]
push 0x53
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_system_ca.cpp
push edi
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 0x40e22f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e225
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e225
jmp 0x40e458
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push ebx
push 0
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x40e370
cmp dword [0x43ba80], eax
je 0x40e3f2
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x40e31b
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x59
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_system_ca.cpp
push edi
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 0x40e3f2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e3e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e3e8
jmp 0x40e458
push dword [ebp - 0x44]
push ebx
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x40e3f2
cmp dword [0x43ba80], eax
je 0x40e3f2
lea ecx, [ebp - 0x40]
call fcn.004011a0
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x40e3a0
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x64
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_system_ca.cpp
push edi
push str._ERROR___s__s:_d_tCryptStringToBinaryA_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x2c]
add esp, 0x18
cmp edx, 0x10
jb 0x40e3f2
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e3e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e458
push edx
push ecx
call fcn.0040f6ee
add esp, 8
push esi
call fcn.0041967f
add esp, 4
push ebx
call fcn.00414d6e
jmp 0x40e235
cmp dword [0x43ba80], 0
je 0x40e22f
lea ecx, [ebp - 0x28]
call fcn.004011a0
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x40e425
mov edi, dword [edi]
call fcn.00414e02
push dword [eax]
push dword [ebp - 0x48]
push dword [ebp - 0x54]
push ebx
push 0x47
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_system_ca.cpp
push edi
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 0x40e1fb
call fcn.00415003
call fcn.00415003
int3