Function at 0x5467c0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b0484
mov eax, dword fs:[0]
push eax
sub esp, 0x9b8
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x998], ecx
cmp dword [ebp + 8], 0
jne 0x546801
mov eax, 0x74
jmp 0x547484
mov dword [ebp - 0x50c], 0
mov byte [ebp - 0x3ec], 0
push 0x1ff
push 0
lea eax, [ebp - 0x3eb]
push eax
call fcn.006665c0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str._s__s_sm2cert_export
lea edx, [ebp - 0x3ec]
push edx
call fcn.0066926d
add esp, 0xc
lea eax, [ebp - 0x3ec]
push eax
mov ecx, dword [ebp - 0x998]
call fcn.005433c0
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
je 0x54686c
mov eax, dword [ebp - 0x50c]
jmp 0x547484
lea ecx, [ebp - 0x15c]
call fcn.00401490
mov dword [ebp - 4], 0
mov dword [0x10ac334], 1
cmp dword [0x10ac334], 0
je 0x54697f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
lea ecx, [ebp - 0x950]
push ecx
push 1
lea edx, [ebp - 0x94c]
push edx
mov eax, dword [ebp - 0x998]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x546943
cmp dword [ebp - 0x950], 0
je 0x546943
push 0
lea edx, [ebp - 0x950]
push edx
push 0x3ff
lea eax, [ebp - 0x94c]
push eax
mov ecx, dword [ebp - 0x998]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5468fc
jmp 0x54697f
mov eax, dword [ebp - 0x950]
mov byte [ebp + eax - 0x94c], 0
lea ecx, [ebp - 0x94c]
push ecx
lea ecx, [ebp - 0x954]
call fcn.0040dbe0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x954]
push edx
lea ecx, [ebp - 0x15c]
call fcn.004174c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x954]
call fcn.004014d0
jmp 0x546965
push 1
mov eax, dword [ebp - 0x998]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x548], eax
cmp dword [ebp - 0x548], 0
jne 0x546965
jmp 0x54697f
cmp dword [0x10ac334], 0
jne 0x54697a
mov dword [ebp - 0x50c], 0x7b
jmp 0x54697f
jmp 0x546888
mov ecx, dword [ebp - 0x998]
call fcn.00543590
push str.error:_system_not_support
lea ecx, [ebp - 0x15c]
call fcn.00489570
push eax
call fcn.006687b0
add esp, 8
test eax, eax
je 0x5469da
mov dword [ebp - 0x50c], 0x90
mov edx, dword [ebp - 0x50c]
mov dword [ebp - 0x968], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004014d0
mov eax, dword [ebp - 0x968]
jmp 0x547484
lea ecx, [ebp - 0x3f8]
call fcn.00401490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x508]
call fcn.00401490
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x158]
call fcn.00401490
mov byte [ebp - 4], 4
mov dword [ebp - 0x3f4], 8
lea ecx, [ebp - 0x138]
call fcn.00401490
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1e4]
call fcn.00401490
mov byte [ebp - 4], 6
mov byte [ebp - 0x500], 0
xor eax, eax
mov dword [ebp - 0x4ff], eax
mov dword [ebp - 0x4fb], eax
mov dword [ebp - 0x958], 0
jmp 0x546a5f
mov ecx, dword [ebp - 0x958]
add ecx, 1
mov dword [ebp - 0x958], ecx
cmp dword [ebp - 0x958], 3
jge 0x546d5f
lea ecx, [ebp - 0x15c]
call fcn.004014f0
cmp eax, 8
jge 0x546afb
push 0x763f8c
call fcn.0066610b
add esp, 4
mov dword [ebp - 0x96c], 0xffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1e4]
call fcn.004014d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.004014d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x158]
call fcn.004014d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x508]
call fcn.004014d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3f8]
call fcn.004014d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004014d0
mov eax, dword [ebp - 0x96c]
jmp 0x547484
push 8
lea edx, [ebp - 0x970]
push edx
lea ecx, [ebp - 0x15c]
call fcn.00401270
mov dword [ebp - 0x99c], eax
mov eax, dword [ebp - 0x99c]
mov dword [ebp - 0x9a0], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x9a0]
push ecx
lea ecx, [ebp - 0x138]
call fcn.0040fe20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x970]
call fcn.004014d0
lea ecx, [ebp - 0x15c]
call fcn.004014f0
sub eax, 8
push eax
lea edx, [ebp - 0x974]
push edx
lea ecx, [ebp - 0x15c]
call fcn.004137c0
mov dword [ebp - 0x9a4], eax
mov eax, dword [ebp - 0x9a4]
mov dword [ebp - 0x9a8], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x9a8]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.0040fe20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x974]
call fcn.004014d0
push 0
lea ecx, [ebp - 0x138]
call fcn.004018a0
push eax
call fcn.00666b8d
add esp, 4
mov dword [ebp - 0x504], eax
lea ecx, [ebp - 0x15c]
call fcn.004014f0
cmp eax, dword [ebp - 0x504]
jge 0x546c4c
push str.error__CertData_length_is_error._r_n
call fcn.0066610b
add esp, 4
mov dword [ebp - 0x978], 0xffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1e4]
call fcn.004014d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.004014d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x158]
call fcn.004014d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x508]
call fcn.004014d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3f8]
call fcn.004014d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004014d0
mov eax, dword [ebp - 0x978]
jmp 0x547484
mov edx, dword [ebp - 0x504]
push edx
lea eax, [ebp - 0x97c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00401270
mov dword [ebp - 0x9ac], eax
mov ecx, dword [ebp - 0x9ac]
mov dword [ebp - 0x9b0], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x9b0]
push edx
lea ecx, [ebp - 0x1e4]
call fcn.0040fe20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x97c]
call fcn.004014d0
mov eax, dword [ebp - 0x958]
mov dword [ebp - 0x9b4], eax
cmp dword [ebp - 0x9b4], 0
je 0x546cc5
cmp dword [ebp - 0x9b4], 1
je 0x546cd9
cmp dword [ebp - 0x9b4], 2
je 0x546ced
jmp 0x546cff
lea ecx, [ebp - 0x1e4]
push ecx
lea ecx, [ebp - 0x3f8]
call fcn.0040fe20
jmp 0x546cff
lea edx, [ebp - 0x1e4]
push edx
lea ecx, [ebp - 0x508]
call fcn.0040fe20
jmp 0x546cff
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0x158]
call fcn.0040fe20
lea ecx, [ebp - 0x15c]
call fcn.004014f0
sub eax, dword [ebp - 0x504]
push eax
lea ecx, [ebp - 0x980]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.004137c0
mov dword [ebp - 0x9b8], eax
mov edx, dword [ebp - 0x9b8]
mov dword [ebp - 0x9bc], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x9bc]
push eax
lea ecx, [ebp - 0x15c]
call fcn.0040fe20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x980]
call fcn.004014d0
jmp 0x546a50
mov ecx, dword [ebp - 0x508]
push ecx
push str.cert_hash
push 0x763fe0
call fcn.0066610b
add esp, 0xc
mov edx, dword [ebp - 0x158]
push edx
push str.cert_merid
push str._s_s_r_n
call fcn.0066610b
add esp, 0xc
lea ecx, [ebp - 0x3f8]
call fcn.004014f0
push eax
call fcn.00576bfc
add esp, 4
mov dword [ebp - 0x984], eax
mov eax, dword [ebp - 0x984]
mov dword [ebp - 0x4c8], eax
lea ecx, [ebp - 0x3f8]
call fcn.004014f0
push eax
push 0
mov ecx, dword [ebp - 0x4c8]
push ecx
call fcn.006665c0
add esp, 0xc
push 0
lea ecx, [ebp - 0x3f8]
call fcn.004018a0
push eax
call fcn.00666cf0
add esp, 4
mov dword [ebp - 0x4c4], eax
push 0
lea ecx, [ebp - 0x3f8]
call fcn.004018a0
push eax
lea edx, [ebp - 0x4c4]
push edx
mov eax, dword [ebp - 0x4c8]
push eax
call fcn.0049f060
add esp, 0xc
push 0x763ffc
push 0x4c
mov ecx, dword [ebp - 0x4c4]
push ecx
mov edx, dword [ebp - 0x4c8]
push edx
lea eax, [ebp - 0x4f4]
push eax
call fcn.004e7b60
add esp, 0x14
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x544]
call fcn.004045c0
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x95c], 0
jmp 0x546e66
mov ecx, dword [ebp - 0x95c]
add ecx, 1
mov dword [ebp - 0x95c], ecx
lea ecx, [ebp - 0x4f4]
call fcn.00407790
cmp dword [ebp - 0x95c], eax
jae 0x546ed0
mov edx, dword [ebp - 0x95c]
push edx
lea ecx, [ebp - 0x4f4]
call fcn.0040cac0
movsx eax, byte [eax]
cmp eax, 0xa
je 0x546ece
mov ecx, dword [ebp - 0x95c]
push ecx
lea ecx, [ebp - 0x4f4]
call fcn.0040cac0
movsx edx, byte [eax]
cmp edx, 0xd
je 0x546ece
mov eax, dword [ebp - 0x95c]
push eax
lea ecx, [ebp - 0x4f4]
call fcn.0040cac0
movzx ecx, byte [eax]
push ecx
lea ecx, [ebp - 0x544]
call fcn.0041eb80
jmp 0x546e57
cmp dword [ebp - 0x4c8], 0
je 0x546efe
mov edx, dword [ebp - 0x4c8]
mov dword [ebp - 0x988], edx
mov eax, dword [ebp - 0x988]
push eax
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x4c8], 0
lea ecx, [ebp - 0x544]
call fcn.00407790
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0x40
jg 0x546f2a
push 0x764000
lea ecx, [ebp - 0x544]
call fcn.004138a0
jmp 0x546fa5
mov dword [ebp - 0x960], 0x40
jmp 0x546f45
mov ecx, dword [ebp - 0x960]
add ecx, 0x40
mov dword [ebp - 0x960], ecx
mov edx, dword [ebp - 0x960]
cmp edx, dword [ebp - 0x1e8]
jge 0x546f95
mov eax, dword [ebp - 0x960]
push eax
lea ecx, [ebp - 0x544]
call fcn.0040cac0
movsx ecx, byte [eax]
cmp ecx, 0xa
je 0x546f84
push 0x764004
mov edx, dword [ebp - 0x960]
push edx
lea ecx, [ebp - 0x544]
call fcn.00477990
mov eax, dword [ebp - 0x960]
add eax, 2
mov dword [ebp - 0x960], eax
jmp 0x546f36
push 0x764008
lea ecx, [ebp - 0x544]
call fcn.004138a0
push str._____BEGIN_CERTIFICATE______r_n
push 0
lea ecx, [ebp - 0x544]
call fcn.00477990
push str._____END_CERTIFICATE______r_n
lea ecx, [ebp - 0x544]
call fcn.00412990
push 0x104
lea ecx, [ebp - 0x134]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x547095
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x964], eax
mov edx, dword [ebp - 0x964]
push edx
push str.GetModuleFileName_failed___d___r_n
call fcn.0066610b
add esp, 8
mov eax, dword [ebp - 0x964]
mov dword [ebp - 0x98c], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x544]
call fcn.00404770
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4f4]
call fcn.00404770
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1e4]
call fcn.004014d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.004014d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x158]
call fcn.004014d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x508]
call fcn.004014d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3f8]
call fcn.004014d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004014d0
mov eax, dword [ebp - 0x98c]
jmp 0x547484
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x1e0]
call fcn.00404630
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x528]
call fcn.004045c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1e0]
call fcn.00407790
push eax
push 0x5c
lea ecx, [ebp - 0x1e0]
call fcn.00497290
add eax, 1
push eax
push 0
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x1e0]
call fcn.004129f0
mov dword [ebp - 0x9c0], eax
mov eax, dword [ebp - 0x9c0]
mov dword [ebp - 0x9c4], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x9c4]
push ecx
lea ecx, [ebp - 0x528]
call fcn.00404740
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.00404770
push 0x64
push 0
lea edx, [ebp - 0x1c4]
push edx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x3f0], 6
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x4cc]
push ecx
movzx edx, word [ebp - 0x4ce]
push edx
movzx eax, word [ebp - 0x4d0]
push eax
movzx ecx, word [ebp - 0x4d2]
push ecx
movzx edx, word [ebp - 0x4d6]
push edx
movzx eax, word [ebp - 0x4d8]
cdq
mov ecx, 0x64
idiv ecx
push edx
push str._02d_02d_02d_02d_02d_02d_
lea edx, [ebp - 0x1c4]
push edx
call fcn.0066926d
add esp, 0x20
push str.cert_
lea ecx, [ebp - 0x4c0]
call fcn.00404630
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x508]
call fcn.00489570
push eax
lea ecx, [ebp - 0x4c0]
call fcn.00412990
push 0x764090
lea ecx, [ebp - 0x4c0]
call fcn.00412990
lea ecx, [ebp - 0x158]
call fcn.00489570
push eax
lea ecx, [ebp - 0x4c0]
call fcn.00412990
push 0x764094
lea ecx, [ebp - 0x4c0]
call fcn.00412990
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x4c0]
call fcn.00412990
push str..cer
lea ecx, [ebp - 0x4c0]
call fcn.00412990
lea ecx, [ebp - 0x4c0]
push ecx
lea edx, [ebp - 0x528]
push edx
lea eax, [ebp - 0x154]
push eax
call fcn.00477630
add esp, 0xc
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x4c0]
call fcn.00404810
push eax
push str.cert_file_s_r_n
call fcn.0066610b
add esp, 8
push 1
lea ecx, [ebp - 0x4a4]
call fcn.004558d0
mov byte [ebp - 4], 0x12
push 0x40
push 0x32
lea ecx, [ebp - 0x154]
call fcn.00404810
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00455b00
lea ecx, [ebp - 0x4a4]
call fcn.00455ae0
movzx ecx, al
test ecx, ecx
je 0x5472c4
lea ecx, [ebp - 0x544]
call fcn.00407790
xor edx, edx
push edx
push eax
lea ecx, [ebp - 0x544]
call fcn.00404810
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00454c20
lea ecx, [ebp - 0x4a4]
call fcn.00455b60
jmp 0x5473ac
push str.error__open_and_create_certfile_fail._r_n
call fcn.0066610b
add esp, 4
mov dword [ebp - 0x990], 0xffffffff
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x4a4]
call fcn.004540c0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x154]
call fcn.00404770
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x4c0]
call fcn.00404770
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x528]
call fcn.00404770
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1e0]
call fcn.00404770
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x544]
call fcn.00404770
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4f4]
call fcn.00404770
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1e4]
call fcn.004014d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.004014d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x158]
call fcn.004014d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x508]
call fcn.004014d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3f8]
call fcn.004014d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004014d0
mov eax, dword [ebp - 0x990]
jmp 0x547484
mov eax, dword [ebp - 0x50c]
mov dword [ebp - 0x994], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x4a4]
call fcn.004540c0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x154]
call fcn.00404770
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x4c0]
call fcn.00404770
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x528]
call fcn.00404770
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1e0]
call fcn.00404770
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x544]
call fcn.00404770
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4f4]
call fcn.00404770
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1e4]
call fcn.004014d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.004014d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x158]
call fcn.004014d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x508]
call fcn.004014d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3f8]
call fcn.004014d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004014d0
mov eax, dword [ebp - 0x994]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 4